From: Stephen Frost <sfrost@snowman.net>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: [COMMITTERS] pgsql: Add COMMENT and SECURITY LABEL support for publications and subs
Date: Tue, 4 Apr 2017 09:59:01 -0400
Message-ID: <20170404135901.GD9812@tamriel.snowman.net> (raw)
In-Reply-To: <b25dea03-6664-0e44-86d2-5ef23b46e740@2ndquadrant.com>
References: <E1crced-0006nm-3H@gemulon.postgresql.org>
<20170325162409.GY9812@tamriel.snowman.net>
<b25dea03-6664-0e44-86d2-5ef23b46e740@2ndquadrant.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Peter,
* Peter Eisentraut (peter.eisentraut@2ndquadrant.com) wrote:
> On 3/25/17 12:24, Stephen Frost wrote:
> >> Add COMMENT and SECURITY LABEL support for publications and subscriptions
> >
> > Isn't this missing psql tab completion, and pg_dump support? And
> > regression tests for the latter?
>
> I have added the tab completion support.
Thanks!
> Attached is a patch that adds the pg_dump support, but I'm struggling to
> make the tests work. Could you take a look? Problem one I'm seeing is
> that the tests assert that there are no comments in the post-data
> section, which is no longer the case here.
If that's the case (and is intended), then you'll need to remove the
'section_post_data' entry from the COMMENTS catch-all 'unlike' and move
that into the 'unlike' for each of the COMMENT tests which were
depending on the catch-all to handle that.
The other approach is to create a new catch-all which catches COMMENTs
that are not pub/sub and have the other COMMENT tests use that but have
a different catch-all for the pub/sub entries or just have all of the
tests covered by them. There are a few examples of this approach
already (off-hand, I think there's one related to blobs).
> Problem two is that
> subscriptions are not dumped by default, so those new tests fail, but I
> don't understand why the existing tests about subscriptions work so far.
There are (or were?) some tests which explicitly use
'--include-subscription'. You can see how each test's pg_dump is run in
the hash at the top.
I thought we were changing that anyway though? To dump subscriptions by
default but to have them dumped in a 'not enabled' fashion? In fact, I
thought that had already happened, but I might be thinking of something
else.
Thanks!
Stephen
Attachments:
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: sfrost@snowman.net, peter.eisentraut@2ndquadrant.com, pgsql-hackers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: Add COMMENT and SECURITY LABEL support for publications and subs
In-Reply-To: <20170404135901.GD9812@tamriel.snowman.net>
References: <E1crced-0006nm-3H@gemulon.postgresql.org> <20170325162409.GY9812@tamriel.snowman.net> <b25dea03-6664-0e44-86d2-5ef23b46e740@2ndquadrant.com> <20170404135901.GD9812@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