You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when used with pathman, SQL select from distribute table used Distributed Subplan 17_1 will report error.
CREATE TABLE t1 (id int, val int);
CREATE TABLE t2 (id int, val int);
SELECT create_distributed_table('t1', 'id');
SELECT create_distributed_table('t2', 'id');
xxx@postgres=# select* from t1,(select* from t2 where id>10) as tt;
ERROR: relation "17_1" does not exist
CONTEXT: while executing command on 192.168.247.128:6432
it is because citus will send 'copy xxx FROM STDIN WITH (format result)' to datanode and pathman is loaded after citus. without pathman, citus will process 'copy from' specially, it will create xxx for copy. but with pathman, pathman will to get relid of xxx in is_pathman_related_copy function, because xxx is not exist, it will throw exception, then select failed.
Problem description
when used with pathman, SQL select from distribute table used
Distributed Subplan 17_1
will report error.it is because citus will send 'copy xxx FROM STDIN WITH (format result)' to datanode and pathman is loaded after citus. without pathman, citus will process 'copy from' specially, it will create xxx for copy. but with pathman, pathman will to get relid of xxx in is_pathman_related_copy function, because xxx is not exist, it will throw exception, then select failed.
stack:
Is it ok to change is_pathman_related_copy func as follows ?
Environment
pg version 13.3
The text was updated successfully, but these errors were encountered: