Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZOtFb-0004ic-9d for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Aug 2015 20:00:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZOtFZ-0002c3-Vl for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Aug 2015 20:00:50 +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) (envelope-from ) id 1ZOtFZ-0002bw-El for pgsql-hackers@postgreSQL.org; Mon, 10 Aug 2015 20:00:49 +0000 Received: from mout.gmx.net ([212.227.15.15]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84) (envelope-from ) id 1ZOtFV-000876-NI for pgsql-hackers@postgreSQL.org; Mon, 10 Aug 2015 20:00:48 +0000 Received: from auth2-smtp.messagingengine.com ([66.111.4.228]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0MOf5S-1ZUxWm2WqE-0068nW for ; Mon, 10 Aug 2015 22:00:42 +0200 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailauth.nyi.internal (Postfix) with ESMTP id 04FBB21C2F for ; Mon, 10 Aug 2015 16:00:41 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Mon, 10 Aug 2015 16:00:40 -0400 X-Sasl-enc: 5t0SWvWDXOh5TaRrLSRWo+y7RxWBbYasFtz4kZ5U45XL 1439236840 Received: from [192.168.1.146] (unknown [204.145.120.11]) by mail.messagingengine.com (Postfix) with ESMTPA id B5A3AC0001F; Mon, 10 Aug 2015 16:00:40 -0400 (EDT) Message-ID: <55C902E8.2010400@gmx.net> Date: Mon, 10 Aug 2015 16:00:40 -0400 From: Peter Eisentraut User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Tom Lane , Andrew Dunstan CC: pgsql-hackers@postgreSQL.org Subject: Re: [COMMITTERS] pgsql: Fix pg_dump to dump shell types. References: <55C7CF3B.30703@dunslane.net> <20081.1439158993@sss.pgh.pa.us> In-Reply-To: <20081.1439158993@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:FLevpKm3SRcO0BIjpRqda/ZsFvTXN9Us7JF+QlM5ou9G7eWx4Az ZDqC6nmSIGr0YvHzFnv6C5vNdM9O0lpteyxePwO8Desf/IAYq2Y4tz+Wzs0QVtPmzubfRVj BavrxP09MQOZCMuKIh5arOKSQK6bpmE+IBQai9OxLXIjK8E2p+JFgL8e7OnsE375kZFt73g KDaU7GRJrNUW0WSTfUxVA== X-UI-Out-Filterresults: notjunk:1;V01:K0:awq+M1tSVKk=:2FM98ayiHxiet+nVjNEjB5 iIXFav0j9XznAEd9ZNuPGur+VQt35M6CzySVtADq+f6PziEBhT5EHR+/3fMIkVLtFD1DsR9tr c/hRAoZ14Bwh+S0En0oAQGAI75+8xM6+9kT5o/J633pk7KrceqZAV5Y0IRLDcOvHs4gh+g9Hf tkKQZneTUdlWWrMAs0vbK8xXxiQQ6yqdNV7u7YuYrFWjJgCrmJOzyZ9HRzml/N/E1aM9UZrnB ozemGMyfLsenAnsPQA2c3OzUsZnmijwI7snTBiY3LpryjP8Be+RnKs0fCwZj4RR0fO/22NceB feUJxWSpTcmYOPApkjrjLo433kO82EVSXFiNe4//PeqGNAyLMmewBku8S5HxDtbJEFTdS0DDl Hsp2nP0jtZznb/zltEUbvGXFxcC9Ui1kNa3fR4PnTKToOTP3GlUYtF3Op+78E0KrQY5uPlGaI eNOpLeosb/I8N9TCkVqx/ElIIbnc9EQtvMbVz+sk/xUkEYDWFQ/4tiiyVATG4B5+uwr0ZZi+C EPo2xUiqknLMAh79WjVv+vaktwvP9d6CyRn1ksAW+I3xOe3jg1PGx+taca443kN+ptoj6FYpJ WooC4G0wU9p4ZcuOXOJXMvRm0XXyi/ubtjXc/N9D/7uQ8VxrPB56oP1H+FyYC096o+rtA9U71 M1xb1AjdFiruUa1dBkvsr4a0KNWNeVX+j8FufKJ/KDLU2ghR9hxEnqQoytiOdkL5PFOzY5pGb JxmghGx2m7XUvjxcFuP6gJ/gV5wzxirmjcmrig== 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 On 8/9/15 6:23 PM, Tom Lane wrote: > It looks to me like the reason for this is that pg_dump forces the > "typacl" of a type to be '{=U}' when reading the schema data for a > pre-9.2 type, rather than reading it as NULL (ie default permissions) > which would result in not printing any grant/revoke commands for > the object. > > I do not see a good reason for that; quite aside from this problem, > it means there is one more place that knows the default permissions > for a type than there needs to be. Peter, what was the rationale? This was probably just copied from how proacl and lanacl are handled, which predate typacl by quite a bit. Maybe there was a reason in those days. It might also have something to do with how owner privileges are handled. An explicit '{=U}' doesn't create owner privileges, unlike a null value in that field. Maybe this is necessary if you dump and restore between databases with different user names. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers