Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZOuw9-0000Wx-Vh for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Aug 2015 21:48:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZOuw8-0005co-Up for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Aug 2015 21:48:52 +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) (envelope-from ) id 1ZOuw6-0005b1-VC for pgsql-hackers@postgresql.org; Mon, 10 Aug 2015 21:48:51 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZOuw4-0000Iw-In for pgsql-hackers@postgresql.org; Mon, 10 Aug 2015 21:48:49 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t7ALmi8J015658; Mon, 10 Aug 2015 17:48:44 -0400 From: Tom Lane To: Peter Eisentraut cc: Andrew Dunstan , pgsql-hackers@postgresql.org Subject: Re: [COMMITTERS] pgsql: Fix pg_dump to dump shell types. In-reply-to: <8191.1439239231@sss.pgh.pa.us> References: <55C7CF3B.30703@dunslane.net> <20081.1439158993@sss.pgh.pa.us> <55C902E8.2010400@gmx.net> <8191.1439239231@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Mon, 10 Aug 2015 16:40:31 -0400" Date: Mon, 10 Aug 2015 17:48:44 -0400 Message-ID: <15657.1439243324@sss.pgh.pa.us> 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 I wrote: > But now that you mention it, isn't that completely broken? What pg_dump > actually prints given this made-up data is > REVOKE ALL ON TYPE myshell FROM PUBLIC; > REVOKE ALL ON TYPE myshell FROM postgres; > GRANT ALL ON TYPE myshell TO PUBLIC; > which seems like a completely insane interpretation. There is no way > that dumping a type from a pre-typacl database and restoring it into > a newer one should end up with the type's owner having no privileges > on it. I'm astonished that we've not gotten bug reports about that. ... of course, the reason for no field reports is that the owner still has privileges, as she inherits them from PUBLIC. Doesn't make this any less broken though. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers