From d2d69f953250d6bb34539e7f8ab2acb610e6ffa3 Mon Sep 17 00:00:00 2001 From: cogs Date: Mon, 14 Oct 2024 23:08:08 -0500 Subject: [PATCH] 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`. --- src/pgsql/pgsql-ddl.lisp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pgsql/pgsql-ddl.lisp b/src/pgsql/pgsql-ddl.lisp index 03e8962..ed81ab4 100644 --- a/src/pgsql/pgsql-ddl.lisp +++ b/src/pgsql/pgsql-ddl.lisp @@ -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))