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

Commitc5c5832

Browse files
committed
Make test_decoding ddl.out shorter
Some of the test_decoding test output was extremely wide, because itdeals with massive toasted values, and the aligned mode causes psql toproduce 200kB of whitespace and dashes. Change to unaligned modetemporarily to avoid that behavior.Backpatch to 14, where it applies cleanly.Discussion:https://postgr.es/m/20230405103953.sxleixp3uz5lazst@alvherre.pgsql
1 parent10fd061 commitc5c5832

File tree

2 files changed

+164
-158
lines changed

2 files changed

+164
-158
lines changed

‎contrib/test_decoding/expected/ddl.out

Lines changed: 158 additions & 158 deletions
Large diffs are not rendered by default.

‎contrib/test_decoding/sql/ddl.sql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,11 @@ UPDATE toasttable
398398
SET toasted_col1= (SELECT string_agg(g.i::text,'')FROM generate_series(1,2000) g(i))
399399
WHERE id=1;
400400

401+
-- This output is extremely wide, and using aligned mode causes psql to
402+
-- produce 200kB of useless dashes. Turn that off temporarily to avoid it.
403+
\pset format unaligned
401404
SELECT dataFROM pg_logical_slot_get_changes('regression_slot',NULL,NULL,'include-xids','0','skip-empty-xacts','1');
405+
\pset format aligned
402406

403407
INSERT INTO toasttable(toasted_col1)SELECT string_agg(g.i::text,'')FROM generate_series(1,2000) g(i);
404408

@@ -410,10 +414,12 @@ WHERE id = 1;
410414
-- make sure we decode correctly even if the toast table is gone
411415
DROPTABLE toasttable;
412416

417+
\pset format unaligned
413418
SELECT dataFROM pg_logical_slot_get_changes('regression_slot',NULL,NULL,'include-xids','0','skip-empty-xacts','1');
414419

415420
-- done, free logical replication slot
416421
SELECT dataFROM pg_logical_slot_get_changes('regression_slot',NULL,NULL,'include-xids','0','skip-empty-xacts','1');
422+
\pset format aligned
417423

418424
SELECT pg_drop_replication_slot('regression_slot');
419425

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp