XataX
Xata12mo ago
November

Error: Out of Memory when creating a new sequence on pg-enabled DBs

I'm looking to create a new sequence, but it doesn't look like the pg instance is letting me create one-

# When running then
CREATE SEQUENCE foo_bar_id_seq MINVALUE 20;

# Results in this error
ERROR:  out of memory
DETAIL:  Failed on request of size 8192.
CONTEXT:  SQL statement "SELECT COUNT(*)
            FROM pg_class C
            WHERE C.relnamespace = quote_ident(r_schema_name)::regnamespace::oid"
PL/pgSQL function xata_private.check_object_count() line 11 at SQL statement

# Or this error
ERROR:  out of memory
DETAIL:  Failed on request of size 8192.
CONTEXT:  SQL statement "SELECT COUNT(*)
            FROM pg_class C
            WHERE C.relnamespace = quote_ident(r_schema_name)::regnamespace::oid"
PL/pgSQL function xata_private.check_object_count() line 11 at SQL statement


Given that my memory usage is still in the kilobytes (pic attached) and well below the cap, is this just a temporary issue because of some capacity issues of the shared host, or have I run into an implicit limit somewhere?
Screenshot_2025-01-05_at_10.22.09_PM.png
Was this page helpful?