Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ar9GY-0007up-9w for pgsql-hackers@arkaria.postgresql.org; Fri, 15 Apr 2016 19:18:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ar9GX-0006sf-SV for pgsql-hackers@arkaria.postgresql.org; Fri, 15 Apr 2016 19:18:53 +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 1ar9GW-0006qS-GE for pgsql-hackers@postgresql.org; Fri, 15 Apr 2016 19:18:52 +0000 Received: from smtp-auth.no-ip.com ([8.23.224.61] helo=out.smtp-auth.no-ip.com) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1ar9GS-00076o-Fg for pgsql-hackers@postgresql.org; Fri, 15 Apr 2016 19:18:52 +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 ABCEB400F05; Fri, 15 Apr 2016 12:18:39 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id D6813295; Fri, 15 Apr 2016 16:18:36 -0300 (CLT) Date: Fri, 15 Apr 2016 16:18:36 -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: <20160415191836.GA432999@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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: > Add new catalog called pg_init_privs > > This new catalog holds the privileges which the system was > initialized with at initdb time, along with any permissions set > by extensions at CREATE EXTENSION time. This allows pg_dump > (and any other similar use-cases) to detect when the privileges > set on initdb-created or extension-created objects have been > changed from what they were set to at initdb/extension-creation > time and handle those changes appropriately. If you have an extension that's marked not relocatable and drop it, its schema is left behind; trying to create the extension again, *crash*. $ cat /pgsql/install/master/share/extension/crash--1.sql grant usage on schema @extschema@ to public; $ cat /pgsql/install/master/share/extension/crash.control comment = 'crash' default_version = '1' relocatable = false superuser = true schema = 'crash' alvherre=# create extension crash; CREATE EXTENSION alvherre=# drop extension crash; DROP EXTENSION alvherre=# \dn Listado de esquemas Nombre | Dueño --------+---------- crash | alvherre public | alvherre (2 filas) alvherre=# create extension crash; el servidor ha cerrado la conexión inesperadamente Probablemente se debe a que el servidor terminó de manera anormal antes o durante el procesamiento de la petición. La conexión al servidor se ha perdido. Intentando reiniciar: con éxito. -- Á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