mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-06 15:24:56 +08:00
postgres_fdw: Remove CTID output from some tests.
Commit 1bc0100d27
added these tests,
but they're not stable enough to survive in the buildfarm. Remove
CTIDs from the output in the hopes of fixing that.
This commit is contained in:
parent
1bc0100d27
commit
882ea509fe
@ -5417,44 +5417,44 @@ EXPLAIN (verbose, costs off)
|
||||
UPDATE ft2 SET c3 = 'foo'
|
||||
FROM ft4 INNER JOIN ft5 ON (ft4.c1 = ft5.c1)
|
||||
WHERE ft2.c1 > 1200 AND ft2.c2 = ft4.c1
|
||||
RETURNING ft2.ctid, ft2, ft2.*, ft4.ctid, ft4, ft4.*; -- can be pushed down
|
||||
QUERY PLAN
|
||||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
RETURNING ft2, ft2.*, ft4, ft4.*; -- can be pushed down
|
||||
QUERY PLAN
|
||||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
Update on public.ft2
|
||||
Output: ft2.ctid, ft2.*, ft2.c1, ft2.c2, ft2.c3, ft2.c4, ft2.c5, ft2.c6, ft2.c7, ft2.c8, ft4.ctid, ft4.*, ft4.c1, ft4.c2, ft4.c3
|
||||
Output: ft2.*, ft2.c1, ft2.c2, ft2.c3, ft2.c4, ft2.c5, ft2.c6, ft2.c7, ft2.c8, ft4.*, ft4.c1, ft4.c2, ft4.c3
|
||||
-> Foreign Update
|
||||
Remote SQL: UPDATE "S 1"."T 1" r1 SET c3 = 'foo'::text FROM ("S 1"."T 3" r2 INNER JOIN "S 1"."T 4" r3 ON (TRUE)) WHERE ((r2.c1 = r3.c1)) AND ((r1.c2 = r2.c1)) AND ((r1."C 1" > 1200)) RETURNING r1."C 1", r1.c2, r1.c3, r1.c4, r1.c5, r1.c6, r1.c7, r1.c8, r1.ctid, r2.ctid, CASE WHEN (r2.*)::text IS NOT NULL THEN ROW(r2.c1, r2.c2, r2.c3) END, r2.c1, r2.c2, r2.c3
|
||||
Remote SQL: UPDATE "S 1"."T 1" r1 SET c3 = 'foo'::text FROM ("S 1"."T 3" r2 INNER JOIN "S 1"."T 4" r3 ON (TRUE)) WHERE ((r2.c1 = r3.c1)) AND ((r1.c2 = r2.c1)) AND ((r1."C 1" > 1200)) RETURNING r1."C 1", r1.c2, r1.c3, r1.c4, r1.c5, r1.c6, r1.c7, r1.c8, CASE WHEN (r2.*)::text IS NOT NULL THEN ROW(r2.c1, r2.c2, r2.c3) END, r2.c1, r2.c2, r2.c3
|
||||
(4 rows)
|
||||
|
||||
UPDATE ft2 SET c3 = 'foo'
|
||||
FROM ft4 INNER JOIN ft5 ON (ft4.c1 = ft5.c1)
|
||||
WHERE ft2.c1 > 1200 AND ft2.c2 = ft4.c1
|
||||
RETURNING ft2.ctid, ft2, ft2.*, ft4.ctid, ft4, ft4.*;
|
||||
ctid | ft2 | c1 | c2 | c3 | c4 | c5 | c6 | c7 | c8 | ctid | ft4 | c1 | c2 | c3
|
||||
----------+--------------------------------+------+----+-----+----+----+----+------------+----+--------+----------------+----+----+--------
|
||||
(12,102) | (1206,6,foo,,,,"ft2 ",) | 1206 | 6 | foo | | | | ft2 | | (0,6) | (6,7,AAA006) | 6 | 7 | AAA006
|
||||
(12,103) | (1212,12,foo,,,,"ft2 ",) | 1212 | 12 | foo | | | | ft2 | | (0,12) | (12,13,AAA012) | 12 | 13 | AAA012
|
||||
(12,104) | (1218,18,foo,,,,"ft2 ",) | 1218 | 18 | foo | | | | ft2 | | (0,18) | (18,19,AAA018) | 18 | 19 | AAA018
|
||||
(12,105) | (1224,24,foo,,,,"ft2 ",) | 1224 | 24 | foo | | | | ft2 | | (0,24) | (24,25,AAA024) | 24 | 25 | AAA024
|
||||
(12,106) | (1230,30,foo,,,,"ft2 ",) | 1230 | 30 | foo | | | | ft2 | | (0,30) | (30,31,AAA030) | 30 | 31 | AAA030
|
||||
(12,107) | (1236,36,foo,,,,"ft2 ",) | 1236 | 36 | foo | | | | ft2 | | (0,36) | (36,37,AAA036) | 36 | 37 | AAA036
|
||||
(12,108) | (1242,42,foo,,,,"ft2 ",) | 1242 | 42 | foo | | | | ft2 | | (0,42) | (42,43,AAA042) | 42 | 43 | AAA042
|
||||
(12,109) | (1248,48,foo,,,,"ft2 ",) | 1248 | 48 | foo | | | | ft2 | | (0,48) | (48,49,AAA048) | 48 | 49 | AAA048
|
||||
(12,110) | (1254,54,foo,,,,"ft2 ",) | 1254 | 54 | foo | | | | ft2 | | (0,54) | (54,55,AAA054) | 54 | 55 | AAA054
|
||||
(12,111) | (1260,60,foo,,,,"ft2 ",) | 1260 | 60 | foo | | | | ft2 | | (0,60) | (60,61,AAA060) | 60 | 61 | AAA060
|
||||
(12,112) | (1266,66,foo,,,,"ft2 ",) | 1266 | 66 | foo | | | | ft2 | | (0,66) | (66,67,AAA066) | 66 | 67 | AAA066
|
||||
(12,113) | (1272,72,foo,,,,"ft2 ",) | 1272 | 72 | foo | | | | ft2 | | (0,72) | (72,73,AAA072) | 72 | 73 | AAA072
|
||||
(12,114) | (1278,78,foo,,,,"ft2 ",) | 1278 | 78 | foo | | | | ft2 | | (0,78) | (78,79,AAA078) | 78 | 79 | AAA078
|
||||
(12,115) | (1284,84,foo,,,,"ft2 ",) | 1284 | 84 | foo | | | | ft2 | | (0,84) | (84,85,AAA084) | 84 | 85 | AAA084
|
||||
(12,116) | (1290,90,foo,,,,"ft2 ",) | 1290 | 90 | foo | | | | ft2 | | (0,90) | (90,91,AAA090) | 90 | 91 | AAA090
|
||||
(12,117) | (1296,96,foo,,,,"ft2 ",) | 1296 | 96 | foo | | | | ft2 | | (0,96) | (96,97,AAA096) | 96 | 97 | AAA096
|
||||
RETURNING ft2, ft2.*, ft4, ft4.*;
|
||||
ft2 | c1 | c2 | c3 | c4 | c5 | c6 | c7 | c8 | ft4 | c1 | c2 | c3
|
||||
--------------------------------+------+----+-----+----+----+----+------------+----+----------------+----+----+--------
|
||||
(1206,6,foo,,,,"ft2 ",) | 1206 | 6 | foo | | | | ft2 | | (6,7,AAA006) | 6 | 7 | AAA006
|
||||
(1212,12,foo,,,,"ft2 ",) | 1212 | 12 | foo | | | | ft2 | | (12,13,AAA012) | 12 | 13 | AAA012
|
||||
(1218,18,foo,,,,"ft2 ",) | 1218 | 18 | foo | | | | ft2 | | (18,19,AAA018) | 18 | 19 | AAA018
|
||||
(1224,24,foo,,,,"ft2 ",) | 1224 | 24 | foo | | | | ft2 | | (24,25,AAA024) | 24 | 25 | AAA024
|
||||
(1230,30,foo,,,,"ft2 ",) | 1230 | 30 | foo | | | | ft2 | | (30,31,AAA030) | 30 | 31 | AAA030
|
||||
(1236,36,foo,,,,"ft2 ",) | 1236 | 36 | foo | | | | ft2 | | (36,37,AAA036) | 36 | 37 | AAA036
|
||||
(1242,42,foo,,,,"ft2 ",) | 1242 | 42 | foo | | | | ft2 | | (42,43,AAA042) | 42 | 43 | AAA042
|
||||
(1248,48,foo,,,,"ft2 ",) | 1248 | 48 | foo | | | | ft2 | | (48,49,AAA048) | 48 | 49 | AAA048
|
||||
(1254,54,foo,,,,"ft2 ",) | 1254 | 54 | foo | | | | ft2 | | (54,55,AAA054) | 54 | 55 | AAA054
|
||||
(1260,60,foo,,,,"ft2 ",) | 1260 | 60 | foo | | | | ft2 | | (60,61,AAA060) | 60 | 61 | AAA060
|
||||
(1266,66,foo,,,,"ft2 ",) | 1266 | 66 | foo | | | | ft2 | | (66,67,AAA066) | 66 | 67 | AAA066
|
||||
(1272,72,foo,,,,"ft2 ",) | 1272 | 72 | foo | | | | ft2 | | (72,73,AAA072) | 72 | 73 | AAA072
|
||||
(1278,78,foo,,,,"ft2 ",) | 1278 | 78 | foo | | | | ft2 | | (78,79,AAA078) | 78 | 79 | AAA078
|
||||
(1284,84,foo,,,,"ft2 ",) | 1284 | 84 | foo | | | | ft2 | | (84,85,AAA084) | 84 | 85 | AAA084
|
||||
(1290,90,foo,,,,"ft2 ",) | 1290 | 90 | foo | | | | ft2 | | (90,91,AAA090) | 90 | 91 | AAA090
|
||||
(1296,96,foo,,,,"ft2 ",) | 1296 | 96 | foo | | | | ft2 | | (96,97,AAA096) | 96 | 97 | AAA096
|
||||
(16 rows)
|
||||
|
||||
EXPLAIN (verbose, costs off)
|
||||
DELETE FROM ft2
|
||||
USING ft4 LEFT JOIN ft5 ON (ft4.c1 = ft5.c1)
|
||||
WHERE ft2.c1 > 1200 AND ft2.c1 % 10 = 0 AND ft2.c2 = ft4.c1
|
||||
RETURNING 100; -- can be pushed down
|
||||
RETURNING 100; -- can be pushed down
|
||||
QUERY PLAN
|
||||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
Delete on public.ft2
|
||||
@ -5561,12 +5561,12 @@ EXPLAIN (verbose, costs off)
|
||||
DELETE FROM ft2
|
||||
USING ft4 INNER JOIN ft5 ON (ft4.c1 === ft5.c1)
|
||||
WHERE ft2.c1 > 2000 AND ft2.c2 = ft4.c1
|
||||
RETURNING ft2.ctid, ft2.c1, ft2.c2, ft2.c3; -- can't be pushed down
|
||||
RETURNING ft2.c1, ft2.c2, ft2.c3; -- can't be pushed down
|
||||
QUERY PLAN
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
Delete on public.ft2
|
||||
Output: ft2.ctid, ft2.c1, ft2.c2, ft2.c3
|
||||
Remote SQL: DELETE FROM "S 1"."T 1" WHERE ctid = $1 RETURNING "C 1", c2, c3, ctid
|
||||
Output: ft2.c1, ft2.c2, ft2.c3
|
||||
Remote SQL: DELETE FROM "S 1"."T 1" WHERE ctid = $1 RETURNING "C 1", c2, c3
|
||||
-> Foreign Scan
|
||||
Output: ft2.ctid, ft4.*, ft5.*
|
||||
Filter: (ft4.c1 === ft5.c1)
|
||||
@ -5591,10 +5591,10 @@ DELETE FROM ft2
|
||||
DELETE FROM ft2
|
||||
USING ft4 INNER JOIN ft5 ON (ft4.c1 === ft5.c1)
|
||||
WHERE ft2.c1 > 2000 AND ft2.c2 = ft4.c1
|
||||
RETURNING ft2.ctid, ft2.c1, ft2.c2, ft2.c3;
|
||||
ctid | c1 | c2 | c3
|
||||
----------+------+----+-----
|
||||
(12,112) | 2006 | 6 | baz
|
||||
RETURNING ft2.c1, ft2.c2, ft2.c3;
|
||||
c1 | c2 | c3
|
||||
------+----+-----
|
||||
2006 | 6 | baz
|
||||
(1 row)
|
||||
|
||||
DELETE FROM ft2 WHERE ft2.c1 > 2000;
|
||||
|
@ -1109,16 +1109,16 @@ EXPLAIN (verbose, costs off)
|
||||
UPDATE ft2 SET c3 = 'foo'
|
||||
FROM ft4 INNER JOIN ft5 ON (ft4.c1 = ft5.c1)
|
||||
WHERE ft2.c1 > 1200 AND ft2.c2 = ft4.c1
|
||||
RETURNING ft2.ctid, ft2, ft2.*, ft4.ctid, ft4, ft4.*; -- can be pushed down
|
||||
RETURNING ft2, ft2.*, ft4, ft4.*; -- can be pushed down
|
||||
UPDATE ft2 SET c3 = 'foo'
|
||||
FROM ft4 INNER JOIN ft5 ON (ft4.c1 = ft5.c1)
|
||||
WHERE ft2.c1 > 1200 AND ft2.c2 = ft4.c1
|
||||
RETURNING ft2.ctid, ft2, ft2.*, ft4.ctid, ft4, ft4.*;
|
||||
RETURNING ft2, ft2.*, ft4, ft4.*;
|
||||
EXPLAIN (verbose, costs off)
|
||||
DELETE FROM ft2
|
||||
USING ft4 LEFT JOIN ft5 ON (ft4.c1 = ft5.c1)
|
||||
WHERE ft2.c1 > 1200 AND ft2.c1 % 10 = 0 AND ft2.c2 = ft4.c1
|
||||
RETURNING 100; -- can be pushed down
|
||||
RETURNING 100; -- can be pushed down
|
||||
DELETE FROM ft2
|
||||
USING ft4 LEFT JOIN ft5 ON (ft4.c1 = ft5.c1)
|
||||
WHERE ft2.c1 > 1200 AND ft2.c1 % 10 = 0 AND ft2.c2 = ft4.c1
|
||||
@ -1146,11 +1146,11 @@ EXPLAIN (verbose, costs off)
|
||||
DELETE FROM ft2
|
||||
USING ft4 INNER JOIN ft5 ON (ft4.c1 === ft5.c1)
|
||||
WHERE ft2.c1 > 2000 AND ft2.c2 = ft4.c1
|
||||
RETURNING ft2.ctid, ft2.c1, ft2.c2, ft2.c3; -- can't be pushed down
|
||||
RETURNING ft2.c1, ft2.c2, ft2.c3; -- can't be pushed down
|
||||
DELETE FROM ft2
|
||||
USING ft4 INNER JOIN ft5 ON (ft4.c1 === ft5.c1)
|
||||
WHERE ft2.c1 > 2000 AND ft2.c2 = ft4.c1
|
||||
RETURNING ft2.ctid, ft2.c1, ft2.c2, ft2.c3;
|
||||
RETURNING ft2.c1, ft2.c2, ft2.c3;
|
||||
DELETE FROM ft2 WHERE ft2.c1 > 2000;
|
||||
ALTER SERVER loopback OPTIONS (ADD extensions 'postgres_fdw');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user