From: Stephen Frost <sfrost@snowman.net>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL mailing lists <pgsql-hackers@lists.postgresql.org>
Cc: Daniel Gustafsson <daniel@yesql.se>
Subject: Re: [HACKERS] Bug when dumping "empty" operator classes
Date: Fri, 7 Dec 2018 20:11:42 -0500
Message-ID: <20181208011142.GU3415@tamriel.snowman.net> (raw)
In-Reply-To: <CAB7nPqQ2Y4wQOtQzvb-9WYnPu1CzT=2WkVXkSEuN8AKqe3f90A@mail.gmail.com>
References: <D9E5FC64-7A37-4F3D-B946-7E4FB468F88A@yesql.se>
<30099.1495811285@sss.pgh.pa.us>
<1C694E4B-2458-45B5-B7FC-DF196CC9DB7A@yesql.se>
<CAB7nPqQ2Y4wQOtQzvb-9WYnPu1CzT=2WkVXkSEuN8AKqe3f90A@mail.gmail.com>
Greetings,
* Michael Paquier (michael.paquier@gmail.com) wrote:
> On Fri, May 26, 2017 at 8:14 AM, Daniel Gustafsson <daniel@yesql.se> wrote:
> >> On 26 May 2017, at 17:08, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> >> I'll commit and back-patch this without a test case. Possibly Frost will
> >> be excited enough about it to add something to the pg_dump TAP tests,
> >> but those tests are too opaque for me to want to do so.
>
> For the TAP tests I think that you are looking for something like the
> attached. Stephen, perhaps you could consider including this test in
> the suite?
Another blast from the past. I've updated this to the new pg_dump
test-suite system but otherwise it's basically the same test.
Barring concerns, I'll plan to push this later this weekend.
Thanks!
Stephen
Attachments:add-empty-op-class-pg_dump-test-v1_master.patch (text/x-diff, 1.0K) downloaddiff --git a/src/bin/pg_dump/t/002_pg_dump.pl b/src/bin/pg_dump/t/002_pg_dump.plnew file mode 100644index 2afd950..c687f0f
*** a/src/bin/pg_dump/t/002_pg_dump.pl
--- b/src/bin/pg_dump/t/002_pg_dump.pl
*************** my %tests = (
*** 1521,1526 ****
--- 1521,1541 ----
unlike => { exclude_dump_test_schema => 1, },
},
+ 'CREATE OPERATOR CLASS dump_test.op_class_empty' => {+ create_order => 89,+ create_sql => 'CREATE OPERATOR CLASS dump_test.op_class_empty+ FOR TYPE bigint USING btree FAMILY dump_test.op_family+ AS STORAGE bigint;',+ regexp => qr/^+ \QCREATE OPERATOR CLASS dump_test.op_class_empty\E\n\s++ \QFOR TYPE bigint USING btree FAMILY dump_test.op_family AS\E\n\s++ \QSTORAGE bigint;\E+ /xm,+ like =>+ { %full_runs, %dump_test_schema_runs, section_pre_data => 1, },+ unlike => { exclude_dump_test_schema => 1, },+ },+
'CREATE EVENT TRIGGER test_event_trigger' => {
create_order => 33,
create_sql => 'CREATE EVENT TRIGGER test_event_trigger
signature.asc (application/pgp-signature, 818B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: sfrost@snowman.net, michael.paquier@gmail.com, tgl@sss.pgh.pa.us, pgsql-hackers@lists.postgresql.org, daniel@yesql.se
Subject: Re: [HACKERS] Bug when dumping "empty" operator classes
In-Reply-To: <20181208011142.GU3415@tamriel.snowman.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox