Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cvP1G-0004Eb-Pq for pgsql-hackers@arkaria.postgresql.org; Tue, 04 Apr 2017 14:01:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cvP1G-0008Ag-CO for pgsql-hackers@arkaria.postgresql.org; Tue, 04 Apr 2017 14:01:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cvOzj-0003Xx-7c for pgsql-hackers@postgresql.org; Tue, 04 Apr 2017 13:59:39 +0000 Received: from tamriel.snowman.net ([72.66.115.51]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cvOzc-0003yP-M7 for pgsql-hackers@postgresql.org; Tue, 04 Apr 2017 13:59:38 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id E206C5F794; Tue, 4 Apr 2017 09:59:01 -0400 (EDT) Date: Tue, 4 Apr 2017 09:59:01 -0400 From: Stephen Frost To: Peter Eisentraut Cc: pgsql-hackers Subject: Re: [COMMITTERS] pgsql: Add COMMENT and SECURITY LABEL support for publications and subs Message-ID: <20170404135901.GD9812@tamriel.snowman.net> References: <20170325162409.GY9812@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="jdhNL0H5kAv75x9H" Content-Disposition: inline In-Reply-To: X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-91-generic (x86_64) X-Uptime: 09:54:09 up 269 days, 15:18, 29 users, load average: 0.00, 0.08, 0.12 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org --jdhNL0H5kAv75x9H Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 subscripti= ons > >=20 > > Isn't this missing psql tab completion, and pg_dump support? And > > regression tests for the latter? >=20 > 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 --jdhNL0H5kAv75x9H Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJY46alAAoJEO1sijiDR2RVhOUP/1s+lFuJIDq8MuWUaWNWfaiP JU0atEWla3V4HeI/ikDdQDpJYrejvlUPeuNPB/UL8tgSXywCEsIesNoB4IAFdQj6 t5WDyMCoQjDz+sWDmcjDDZ4ib/SMrWDa/CdKjh61kH6Ms2t0PsPbhOscPzes4loD ZpbGoEriXfJTkwZCkwZLeNaabimdwQl25yzoTBvY4vtUWmG707KN6eWw8trx9lyR 0sp+nIieER/4Wdr7iH2AfoTQTaZ8qHVPm5XP0pkmWQAQq6clP8+u99pbfuPiRyt6 wjWWK30i/MG4D2KofmtboE16S98GCdy7v0krKMsKJDoDBqvMtQ6vkQCXyY3qxHW9 9FfvK5TTFzE4uWW0Xp9EraK2LQeQN8AWWKBUCaUGaSCrcHcOAOLClghJFwXa1hFa 1dzZTke4nydyOXio4cbzkaK/sxtuefnm8CP2EIv8GxpSS7aWtD1yAdMFZheR1ieO aM6N3BfpchdterU7/520U8/iugPsh+qRqalkvc6KmOMGJxO1ukwsGC/YFM+K5Ai/ 6TM3PVVM4qzelfrM2/lMtTm0dCk8TPZfZeiQwgbYcwF/8ZTxo6QfHeQTvl9I4GXi 3xGA4pjPIH84FFH+5NTcAyybGTENOdQA0lyLypMBQAkNQGlkgGa8/Zg+szMR+RcC 1SxQK2sSKo0S8nGsuBGZ =0Wjo -----END PGP SIGNATURE----- --jdhNL0H5kAv75x9H--