Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ar9Nh-0008DG-5U for pgsql-hackers@arkaria.postgresql.org; Fri, 15 Apr 2016 19:26:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ar9Ng-00031x-9J for pgsql-hackers@arkaria.postgresql.org; Fri, 15 Apr 2016 19:26:16 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ar9Nf-00031r-MM for pgsql-hackers@postgresql.org; Fri, 15 Apr 2016 19:26:15 +0000 Received: from smtp-auth.no-ip.com ([8.23.224.61] helo=out.smtp-auth.no-ip.com) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1ar9Nc-0008FI-Fs for pgsql-hackers@postgresql.org; Fri, 15 Apr 2016 19:26:14 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [216.155.90.98]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id ED77740082F; Fri, 15 Apr 2016 12:26:09 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 24B76295; Fri, 15 Apr 2016 16:26:08 -0300 (CLT) Date: Fri, 15 Apr 2016 16:26:08 -0300 From: Alvaro Herrera To: Stephen Frost Cc: pgsql-hackers@postgresql.org Subject: Re: [COMMITTERS] pgsql: Add new catalog called pg_init_privs Message-ID: <20160415192608.GA436485@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20160415192057.GE10850@tamriel.snowman.net> User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -1.1 (-) 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 Stephen Frost wrote: > Alvaro, > 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. Yeah, I noticed that bug too. It might well explain the issue, because the tuple is seen as 0x7f. #0 heap_deform_tuple (tuple=tuple@entry=0x339f438, tupleDesc=tupleDesc@entry=0x7f680f3dcde0, values=values@entry=0x3390cd8, isnull=isnull@entry=0x339f3c8 "\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=tuple@entry=0x339f438, tupleDesc=0x7f680f3dcde0, replValues=replValues@entry=0x7ffd662a3770, replIsnull=replIsnull@entry=0x7ffd662a3750 "", doReplace=doReplace@entry=0x7ffd662a3760 "") at /pgsql/source/master/src/backend/access/common/heaptuple.c:817 #2 0x0000000000518feb in recordExtensionInitPriv (objoid=46960, classoid=2615, objsubid=0, new_acl=0x339f188) at /pgsql/source/master/src/backend/catalog/aclchk.c:5305 #3 0x000000000051d2b5 in ExecGrant_Namespace (istmt=) at /pgsql/source/master/src/backend/catalog/aclchk.c:2942 Not sure what "Pavel's issue" is, since it's not listed in the open items page. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers