Add schema name to worker_modify_identity_columns UDF

issue/6694
Gokhan Gulbiz 2023-03-10 16:12:05 +03:00
parent 9f2ff9ed1f
commit 3a24649748
No known key found for this signature in database
GPG Key ID: 608EF06B6BD1B45B
4 changed files with 6 additions and 6 deletions

View File

@ -98,7 +98,7 @@
* once every LOG_PER_TUPLE_AMOUNT, the copy will be logged. * once every LOG_PER_TUPLE_AMOUNT, the copy will be logged.
*/ */
#define LOG_PER_TUPLE_AMOUNT 1000000 #define LOG_PER_TUPLE_AMOUNT 1000000
#define WORKER_MODIFY_IDENTITY_COMMAND "SELECT worker_modify_identity_columns(%s)" #define WORKER_MODIFY_IDENTITY_COMMAND "SELECT pg_catalog.worker_modify_identity_columns(%s)"
/* local function forward declarations */ /* local function forward declarations */
static void CreateDistributedTableConcurrently(Oid relationId, static void CreateDistributedTableConcurrently(Oid relationId,

View File

@ -1,2 +1,2 @@
-- citus--11.3-1--11.2-1 -- citus--11.3-1--11.2-1
DROP FUNCTION IF EXISTS worker_modify_identity_columns(regclass); DROP FUNCTION IF EXISTS pg_catalog.worker_modify_identity_columns(regclass);

View File

@ -1,7 +1,7 @@
CREATE OR REPLACE FUNCTION worker_modify_identity_columns(regclass) CREATE OR REPLACE FUNCTION pg_catalog.worker_modify_identity_columns(regclass)
RETURNS VOID RETURNS VOID
LANGUAGE C STRICT LANGUAGE C STRICT
AS 'MODULE_PATHNAME', $$worker_modify_identity_columns$$; AS 'MODULE_PATHNAME', $$worker_modify_identity_columns$$;
COMMENT ON FUNCTION worker_modify_identity_columns(regclass) COMMENT ON FUNCTION pg_catalog.worker_modify_identity_columns(regclass)
IS 'modify identity columns to produce globally unique values'; IS 'modify identity columns to produce globally unique values';

View File

@ -1,7 +1,7 @@
CREATE OR REPLACE FUNCTION worker_modify_identity_columns(regclass) CREATE OR REPLACE FUNCTION pg_catalog.worker_modify_identity_columns(regclass)
RETURNS VOID RETURNS VOID
LANGUAGE C STRICT LANGUAGE C STRICT
AS 'MODULE_PATHNAME', $$worker_modify_identity_columns$$; AS 'MODULE_PATHNAME', $$worker_modify_identity_columns$$;
COMMENT ON FUNCTION worker_modify_identity_columns(regclass) COMMENT ON FUNCTION pg_catalog.worker_modify_identity_columns(regclass)
IS 'modify identity columns to produce globally unique values'; IS 'modify identity columns to produce globally unique values';