You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During the import of an SQL statement which was created from a pg_dump I ran into an issue default values that contain functions like this:
CREATETABLEpublic.person (
id bigintNOT NULL,
(...)
external_id character varying(255) DEFAULT "substring"(md5((random())::text), 1, 6),
);
As soon as I remove the DEFAULT instruction here, the import works fine.
This is a very nieche problem, so I just wanted to raise awareness here :)
The text was updated successfully, but these errors were encountered:
tibeer
changed the title
PostgrSQL schema import that contains a DEFAULT field value made up of functions
PostgreSQL schema import that contains a DEFAULT field value made up of functions
Apr 29, 2025
Hi!
During the import of an SQL statement which was created from a pg_dump I ran into an issue default values that contain functions like this:
As soon as I remove the DEFAULT instruction here, the import works fine.
This is a very nieche problem, so I just wanted to raise awareness here :)
The text was updated successfully, but these errors were encountered: