Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UzrP6-00053F-SB for pgsql-bugs@arkaria.postgresql.org; Thu, 18 Jul 2013 16:50:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1UzrP6-0002jl-CD for pgsql-bugs@arkaria.postgresql.org; Thu, 18 Jul 2013 16:50:08 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UzrP5-0002jS-MY for pgsql-bugs@postgresql.org; Thu, 18 Jul 2013 16:50:07 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UzrP2-0006m7-Nn for pgsql-bugs@postgresql.org; Thu, 18 Jul 2013 16:50:07 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UzrP2-0002mT-0R for pgsql-bugs@postgresql.org; Thu, 18 Jul 2013 16:50:04 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.80) (envelope-from ) id 1UzrOw-00065n-Mb for pgsql-bugs@postgresql.org; Thu, 18 Jul 2013 16:49:58 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: BUG #8315: GRANTS allowed on extension functions, but not dumped by pg_dump To: pgsql-bugs@postgresql.org From: jeff@pgexperts.com Message-Id: Date: Thu, 18 Jul 2013 16:49:58 +0000 X-Pg-Spam-Score: 0.5 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 8315 Logged by: Jeff Frost Email address: jeff@pgexperts.com PostgreSQL version: 9.2.4 Operating system: Scientific Linux 6 Description: Simple test case: pgx-test:~ $ createdb permtest pgx-test:~ $ psql permtest psql (9.2.4) Type "help" for help. permtest=# create extension dblink; CREATE EXTENSION permtest=# create role permtestuser with login nosuperuser; permtest=# grant EXECUTE on FUNCTION dblink(text) to permtestuser; GRANT pgx-test:~ $ pg_dump -s permtest | grep GRANT GRANT ALL ON SCHEMA public TO postgres; GRANT ALL ON SCHEMA public TO PUBLIC; I imagine we are expecting people to write security definer wrapper functions, but if so, we should probably not allow them to grant permissions on extension functions (and tables?) if we aren't going to preserve them in the dump. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs