DROP TABLE becomes idempotent for metadata sync - t1

metadata_sync_partially_non_tx
Onder Kalaci 2022-12-02 10:37:19 +01:00
parent dab1729f94
commit 56757b593b
2 changed files with 5 additions and 6 deletions

View File

@ -210,14 +210,13 @@ SELECT run_command_on_workers($$SELECT extversion FROM pg_extension WHERE extnam
-- adding the second node will fail as the text search template needs to be created manually -- adding the second node will fail as the text search template needs to be created manually
SELECT 1 from master_add_node('localhost', :worker_2_port); SELECT 1 from master_add_node('localhost', :worker_2_port);
WARNING: text search template "public.intdict_template" does not exist ERROR: text search template "public.intdict_template" does not exist
CONTEXT: while executing command on localhost:xxxxx CONTEXT: while executing command on localhost:xxxxx
ERROR: failure on connection marked as essential: localhost:xxxxx
-- create the text search template manually on the worker -- create the text search template manually on the worker
\c - - - :worker_2_port \c - - - :worker_2_port
SET citus.enable_metadata_sync TO false; SET citus.enable_metadata_sync TO false;
CREATE FUNCTION dintdict_init(internal) RETURNS internal AS 'dict_int.so' LANGUAGE C STRICT; CREATE OR REPLACE FUNCTION dintdict_init(internal) RETURNS internal AS 'dict_int.so' LANGUAGE C STRICT;
CREATE FUNCTION dintdict_lexize(internal, internal, internal, internal) RETURNS internal AS 'dict_int.so' LANGUAGE C STRICT; CREATE OR REPLACE FUNCTION dintdict_lexize(internal, internal, internal, internal) RETURNS internal AS 'dict_int.so' LANGUAGE C STRICT;
CREATE TEXT SEARCH TEMPLATE intdict_template (LEXIZE = dintdict_lexize, INIT = dintdict_init ); CREATE TEXT SEARCH TEMPLATE intdict_template (LEXIZE = dintdict_lexize, INIT = dintdict_init );
RESET citus.enable_metadata_sync; RESET citus.enable_metadata_sync;
\c - - - :master_port \c - - - :master_port

View File

@ -132,8 +132,8 @@ SELECT 1 from master_add_node('localhost', :worker_2_port);
-- create the text search template manually on the worker -- create the text search template manually on the worker
\c - - - :worker_2_port \c - - - :worker_2_port
SET citus.enable_metadata_sync TO false; SET citus.enable_metadata_sync TO false;
CREATE FUNCTION dintdict_init(internal) RETURNS internal AS 'dict_int.so' LANGUAGE C STRICT; CREATE OR REPLACE FUNCTION dintdict_init(internal) RETURNS internal AS 'dict_int.so' LANGUAGE C STRICT;
CREATE FUNCTION dintdict_lexize(internal, internal, internal, internal) RETURNS internal AS 'dict_int.so' LANGUAGE C STRICT; CREATE OR REPLACE FUNCTION dintdict_lexize(internal, internal, internal, internal) RETURNS internal AS 'dict_int.so' LANGUAGE C STRICT;
CREATE TEXT SEARCH TEMPLATE intdict_template (LEXIZE = dintdict_lexize, INIT = dintdict_init ); CREATE TEXT SEARCH TEMPLATE intdict_template (LEXIZE = dintdict_lexize, INIT = dintdict_init );
RESET citus.enable_metadata_sync; RESET citus.enable_metadata_sync;