Skip to content

Commit eeeb1df

Browse 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

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

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

Lines 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy