Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ar9P4-0008FX-GY for pgsql-hackers@arkaria.postgresql.org; Fri, 15 Apr 2016 19:27:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ar9P4-0005v9-3D for pgsql-hackers@arkaria.postgresql.org; Fri, 15 Apr 2016 19:27:42 +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 1ar9P3-0005u8-HC for pgsql-hackers@postgresql.org; Fri, 15 Apr 2016 19:27:41 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ar9P0-0007K2-Ma for pgsql-hackers@postgresql.org; Fri, 15 Apr 2016 19:27:41 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 0C7B75F79E; Fri, 15 Apr 2016 15:27:38 -0400 (EDT) Date: Fri, 15 Apr 2016 15:27:37 -0400 From: Stephen Frost To: Alvaro Herrera Cc: pgsql-hackers@postgresql.org Subject: Re: [COMMITTERS] pgsql: Add new catalog called pg_init_privs Message-ID: <20160415192737.GG10850@tamriel.snowman.net> References: <20160415192057.GE10850@tamriel.snowman.net> <20160415192608.GA436485@alvherre.pgsql> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="/knlCKogGKzIgL69" Content-Disposition: inline In-Reply-To: <20160415192608.GA436485@alvherre.pgsql> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-77-generic (x86_64) X-Uptime: 15:26:53 up 52 days, 16:19, 18 users, load average: 0.27, 0.16, 0.15 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -2.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 --/knlCKogGKzIgL69 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Alvaro Herrera (alvherre@2ndquadrant.com) wrote: > Stephen Frost wrote: > > Alvaro, >=20 > > Will take a look at this, though I'm just about to commit a fix that's > > probably related (and addresses Pavel's issue). Basically, for reasons > > unknown, I was calling systable_endscan() immediately after > > systable_getnext(), which doesn't work when you want to use the tuple > > you got back. >=20 > Yeah, I noticed that bug too. It might well explain the issue, because > the tuple is seen as 0x7f. >=20 > #0 heap_deform_tuple (tuple=3Dtuple@entry=3D0x339f438, tupleDesc=3Dtuple= Desc@entry=3D0x7f680f3dcde0,=20 > values=3Dvalues@entry=3D0x3390cd8,=20 > isnull=3Disnull@entry=3D0x339f3c8 "\177\177\177\177\177~\177\177h\367= \071\003") > at /pgsql/source/master/src/backend/access/common/heaptuple.c:881 > #1 0x0000000000479e3a in heap_modify_tuple (tuple=3Dtuple@entry=3D0x339f= 438, tupleDesc=3D0x7f680f3dcde0,=20 > replValues=3DreplValues@entry=3D0x7ffd662a3770, replIsnull=3DreplIsnu= ll@entry=3D0x7ffd662a3750 "",=20 > doReplace=3DdoReplace@entry=3D0x7ffd662a3760 "") > at /pgsql/source/master/src/backend/access/common/heaptuple.c:817 > #2 0x0000000000518feb in recordExtensionInitPriv (objoid=3D46960, classo= id=3D2615, objsubid=3D0,=20 > new_acl=3D0x339f188) at /pgsql/source/master/src/backend/catalog/aclc= hk.c:5305 > #3 0x000000000051d2b5 in ExecGrant_Namespace (istmt=3D) > at /pgsql/source/master/src/backend/catalog/aclchk.c:2942 >=20 > Not sure what "Pavel's issue" is, since it's not listed in the open > items page. Here's the latest message ID on the thread he started. CAFj8pRB_8WggxG1EKgfDQ_G_C1p1iLC_j9M3JfLfMLd2Vxt_+w@mail.gmail.com Pretty sure it's the same issue. Going through testing now and will push the fix very shortly. Thanks! Stephen --/knlCKogGKzIgL69 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJXEUCpAAoJEO1sijiDR2RVMV8P/Akm9g4H9zj+ib6T1sof8nfP MkLqdc3sQcAJk3WThBnUkXoaI9syoPu0Dxhe2LWoa6pkaJzy+nwfAjoW+HL9PmF7 rjMfllzv7+nqjMhZlSvp6O/z3ITV90AoVXS+osksPfEg7yV3r3fyDDfJJi4XoeCq 4UjrGP6GFhe7PJqLUR99ATXTC4ObU+mWQWyfUEQPSsBTt40vA3AMSf+Q0BaBNgZz 5gInTZt3ub0iXQ4wj3C6t3bQPysPK7OGUR6roQoR4cQ4XudPItEJ2nnNXFocSWEt uIWpfZL4sAtUqtJ734jWTjdO4X6cyTp1Cscb4Jm1PLatt1EonbzcHHVpogZrTXFC eVwJ0Lk9n9v5TfJP8ICqmW2iYFFrjtM4YRBh8H/tnO5TRDoJpRc9dGdfdRR4Q8Ax prVC0kvp/S/V5hvzWOQ5+lxgvkaKL42dZ8obCH2Yvo0Qv1K1lx2JpL47paJkoBua 8fvIscS+uHvEhBbGSN6PhHbxVC688AdERIVKw1YHqPZ+fmpzMcBXF8lhtcFc8SzV 2BxJ4hP5YwVgBQRGc0AgsxS5eZwkN0xWbwCYUsQEkLkCZ3PiuWDlwyPcA/CfgJ+M qbzQ0phyzhhKti5fjYdGNMGlwkE11reTTeySSVhMKch5o+WKL4RLrTZe1NmSHKdq JEWQqlnuS97hC2FThC+u =W+24 -----END PGP SIGNATURE----- --/knlCKogGKzIgL69--