Skip to content

master_add_node fails to sync metadata if there is a DOMAIN defined within a schema other than public. #8191

@emelsimsek

Description

@emelsimsek

Citus 12.1.7/13.1.0
PG16/PG17

Repro:

  1. Create a cluster
  2. Run https://github.com/citusdata/citus/blob/b7bfe42f1a4d22db4b1ecc2636cdf83adf27c106/src/test/regress/sql/prepared_statements_create_load.sql
  3. Add a new node using master_add_node

Note that the command fails with an error when trying to process prepared statements.test_key

NOTICE:  issuing WITH colocation_group_data (colocationid, shardcount, replicationfactor, distributioncolumntype, distributioncolumncollationname, distributioncolumncollationschema)  AS (VALUES (4, 32, 1, '"prepared statements".test_key'::regtype, 'default', 'pg_catalog')) SELECT pg_catalog.citus_internal_add_colocation_metadata(colocationid, shardcount, replicationfactor, distributioncolumntype, coalesce(c.oid, 0)) FROM colocation_group_data d LEFT JOIN pg_collation c ON (d.distributioncolumncollationname = c.collname AND d.distributioncolumncollationschema::regnamespace = c.collnamespace)
DETAIL:  on server emel@localhost:9704 connectionId: 1
WARNING:  schema "prepared statements" does not exist
ERROR:  failure on connection marked as essential: localhost:9704

Note that since this command is run before creating prepared statements schema, it errors out.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions