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

Appearance settings

Commit eeeb1df

Browse filesBrowse files
committed
Add pg_dump test for empty OP class
This adds a pg_dump test for an empty operator class. Author: Michael Paquier Discussion: https://postgr.es/m/20181208011142.GU3415@tamriel.snowman.net
1 parent 2d7eeb1 commit eeeb1df
Copy full SHA for eeeb1df

File tree

1 file changed

+15
-0
lines changed
Filter options

1 file changed

+15
-0
lines changed

‎src/bin/pg_dump/t/002_pg_dump.pl

Copy file name to clipboardExpand all lines: src/bin/pg_dump/t/002_pg_dump.pl
+15Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1521,6 +1521,21 @@
15211521
unlike => { exclude_dump_test_schema => 1, },
15221522
},
15231523
1524+
'CREATE OPERATOR CLASS dump_test.op_class_empty' => {
1525+
create_order => 89,
1526+
create_sql => 'CREATE OPERATOR CLASS dump_test.op_class_empty
1527+
FOR TYPE bigint USING btree FAMILY dump_test.op_family
1528+
AS STORAGE bigint;',
1529+
regexp => qr/^
1530+
\QCREATE OPERATOR CLASS dump_test.op_class_empty\E\n\s+
1531+
\QFOR TYPE bigint USING btree FAMILY dump_test.op_family AS\E\n\s+
1532+
\QSTORAGE bigint;\E
1533+
/xm,
1534+
like =>
1535+
{ %full_runs, %dump_test_schema_runs, section_pre_data => 1, },
1536+
unlike => { exclude_dump_test_schema => 1, },
1537+
},
1538+
15241539
'CREATE EVENT TRIGGER test_event_trigger' => {
15251540
create_order => 33,
15261541
create_sql => 'CREATE EVENT TRIGGER test_event_trigger

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.