Skip to content

Commit

Permalink
workaround #5780
Browse files Browse the repository at this point in the history
  • Loading branch information
onurctirtir committed Mar 9, 2022
1 parent 8ec3936 commit d6a3eef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/test/regress/expected/multi_explain.out
Original file line number Diff line number Diff line change
Expand Up @@ -3044,7 +3044,7 @@ Custom Scan (Citus Adaptive) (actual rows=1 loops=1)
Node: host=localhost port=xxxxx dbname=regression
-> Seq Scan on distributed_table_1_570032 distributed_table_xxx (actual rows=1 loops=1)
CREATE TYPE multi_explain.int_wrapper_type AS (int_field int);
CREATE TABLE tbl (a multi_explain.int_wrapper_type);
CREATE TABLE tbl (a int, b multi_explain.int_wrapper_type);
SELECT create_distributed_table('tbl', 'a');

EXPLAIN :default_analyze_flags SELECT * FROM tbl;
Expand All @@ -3058,6 +3058,3 @@ Custom Scan (Citus Adaptive) (actual rows=0 loops=1)
-> Seq Scan on tbl_570036 tbl (actual rows=0 loops=1)
SET client_min_messages TO ERROR;
DROP SCHEMA multi_explain CASCADE;
ERROR: cache lookup failed for type 17628
CONTEXT: SQL statement "SELECT citus_drop_all_shards(v_obj.objid, v_obj.schema_name, v_obj.object_name, drop_shards_metadata_only := false)"
PL/pgSQL function citus_drop_trigger() line XX at PERFORM
2 changes: 1 addition & 1 deletion src/test/regress/sql/multi_explain.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1085,7 +1085,7 @@ PREPARE dummy_prep_stmt(int) AS SELECT FROM distributed_table_1;
EXPLAIN :default_analyze_flags EXECUTE dummy_prep_stmt(50);

CREATE TYPE multi_explain.int_wrapper_type AS (int_field int);
CREATE TABLE tbl (a multi_explain.int_wrapper_type);
CREATE TABLE tbl (a int, b multi_explain.int_wrapper_type);
SELECT create_distributed_table('tbl', 'a');

EXPLAIN :default_analyze_flags SELECT * FROM tbl;
Expand Down

0 comments on commit d6a3eef

Please sign in to comment.