Open n0099 opened 2 months ago
CREATE TABLE "base"(i int); CREATE FOREIGN TABLE IF NOT EXISTS "foreign"() INHERITS ("base") SERVER mysql OPTIONS (dbname 'db', table_name 'remote');
UPDATE "base" SET i = 0 WHERE i = 1; DELETE FROM "base" WHERE i = 0;
all of them will return
[HV005] ERROR: system attribute "tableoid" can't be fetched from remote relation
but
INSERT INTO "base"(i) VALUES (1); UPDATE ONLY "base" SET i = 0 WHERE i = 1; DELETE FROM ONLY "base" WHERE i = 0;
works fine and will only INSERT/UPDATE/DELETEed on the base table not to the foreign one.
INSERT
UPDATE
DELETE
base
foreign
Hi @n0099,
Thanks for reporting this issue. I can reproduce the same at my end. We will check the feasibility of fixing this at our end.
all of them will return
but
works fine and will only
INSERT
/UPDATE
/DELETE
ed on thebase
table not to theforeign
one.