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

Commit13b3b62

Browse files
committed
Don't use the pg_am system catalog in new test
This causes deadlocks because it's a highly trafficked catalog. Use aregular table created by the same test instead.Discussion:https://postgr.es/m/f3e61e27-19d0-5e40-3eb2-53282fa0532a@gmail.com
1 parent867cc7b commit13b3b62

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎src/test/regress/expected/create_am.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,8 +548,8 @@ ERROR: access method "I do not exist AM" does not exist
548548
CREATE TABLE i_am_a_failure() USING "btree";
549549
ERROR: access method "btree" is not of type TABLE
550550
-- Other weird invalid cases that cause problems
551-
CREATE FOREIGN TABLE fp PARTITION OFpg_am DEFAULT SERVER x;
552-
ERROR: "pg_am" is not partitioned
551+
CREATE FOREIGN TABLE fp PARTITION OFtableam_parted_a_heap2 DEFAULT SERVER x;
552+
ERROR: "tableam_parted_a_heap2" is not partitioned
553553
-- Drop table access method, which fails as objects depends on it
554554
DROP ACCESS METHOD heap2;
555555
ERROR: cannot drop access method heap2 because other objects depend on it

‎src/test/regress/sql/create_am.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ CREATE TABLE i_am_a_failure() USING "I do not exist AM";
349349
CREATETABLEi_am_a_failure() USING"btree";
350350

351351
-- Other weird invalid cases that cause problems
352-
CREATE FOREIGN TABLE fp PARTITION OFpg_am DEFAULT SERVER x;
352+
CREATE FOREIGN TABLE fp PARTITION OFtableam_parted_a_heap2 DEFAULT SERVER x;
353353

354354
-- Drop table access method, which fails as objects depends on it
355355
DROP ACCESS METHOD heap2;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp