Set the default uuid value to use gen_random_uuid

pgloader uses `uuid_generate_v4` which requires loading the `uuid-ossp`
extension into the database. Since version 13, Postgres has supported
`gen_random_uuid`, which does not. This just changes the default value
for UUIDs to `gen_random_uuid` instead of `uuid_generate_v4`.
This commit is contained in:
cogs 2024-10-14 23:08:08 -05:00
parent 70f3557670
commit d2d69f9532

View File

@ -144,7 +144,7 @@
'((:null . "NULL")
(:current-date . "CURRENT_DATE")
(:current-timestamp . "CURRENT_TIMESTAMP")
(:generate-uuid . "uuid_generate_v4()"))
(:generate-uuid . "gen_random_uuid()"))
"Common normalized default values and their PostgreSQL spelling.")
(defmethod format-default-value ((column column) &key (stream nil))