Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit23ce748

Browse files
committed
Remove expensive test of postgres_fdw batch inserts
The test inserted 70k rows into a foreign table, in order to verifycorrect behavior with more than 65535 parameters, and was added inresponse to a bug report.However, this is rather expensive, especially when running the testsunder valgrind, CLOBBER_CACHE_ALWAYS etc. It doesn't seem worth it tokeep running the test, so remove it from all branches (14+).Backpatch-through: 14Discussion:https://postgr.es/m/2131017.1623451468@sss.pgh.pa.us
1 parent86f23d9 commit23ce748

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

‎contrib/postgres_fdw/expected/postgres_fdw.out

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10139,17 +10139,6 @@ SELECT COUNT(*) FROM ftable;
1013910139
34
1014010140
(1 row)
1014110141

10142-
TRUNCATE batch_table;
10143-
DROP FOREIGN TABLE ftable;
10144-
-- try if large batches exceed max number of bind parameters
10145-
CREATE FOREIGN TABLE ftable ( x int ) SERVER loopback OPTIONS ( table_name 'batch_table', batch_size '100000' );
10146-
INSERT INTO ftable SELECT * FROM generate_series(1, 70000) i;
10147-
SELECT COUNT(*) FROM ftable;
10148-
count
10149-
-------
10150-
70000
10151-
(1 row)
10152-
1015310142
TRUNCATE batch_table;
1015410143
DROP FOREIGN TABLE ftable;
1015510144
-- Disable batch insert

‎contrib/postgres_fdw/sql/postgres_fdw.sql

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3181,13 +3181,6 @@ SELECT COUNT(*) FROM ftable;
31813181
TRUNCATE batch_table;
31823182
DROP FOREIGN TABLE ftable;
31833183

3184-
-- try if large batches exceed max number of bind parameters
3185-
CREATE FOREIGN TABLE ftable ( xint ) SERVER loopback OPTIONS ( table_name'batch_table', batch_size'100000' );
3186-
INSERT INTO ftableSELECT*FROM generate_series(1,70000) i;
3187-
SELECTCOUNT(*)FROM ftable;
3188-
TRUNCATE batch_table;
3189-
DROP FOREIGN TABLE ftable;
3190-
31913184
-- Disable batch insert
31923185
CREATE FOREIGN TABLE ftable ( xint ) SERVER loopback OPTIONS ( table_name'batch_table', batch_size'1' );
31933186
EXPLAIN (VERBOSE, COSTS OFF)INSERT INTO ftableVALUES (1), (2);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp