Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1ThMmH-00063I-Vh for pgsql-bugs@arkaria.postgresql.org; Sat, 08 Dec 2012 15:57:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1ThMmG-00056j-CU for pgsql-bugs@arkaria.postgresql.org; Sat, 08 Dec 2012 15:57:20 +0000 Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Th9kn-00036U-SM for pgsql-bugs@postgresql.org; Sat, 08 Dec 2012 02:02:57 +0000 Received: from mahout.postgresql.org ([98.129.198.123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Th9kk-0005ra-VQ for pgsql-bugs@postgresql.org; Sat, 08 Dec 2012 02:02:57 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Th9kj-0006jC-BU for pgsql-bugs@postgresql.org; Sat, 08 Dec 2012 02:02:54 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1Th9ki-0007ii-J2 for pgsql-bugs@postgresql.org; Sat, 08 Dec 2012 02:02:52 +0000 Date: Sat, 08 Dec 2012 02:02:52 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7741: Two bugs when backing up databases with default privileges defined on public schema To: pgsql-bugs@postgresql.org From: me@nathanalden.com X-Pg-Spam-Score: -1.9 (-) 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: 7741 Logged by: Nathan Alden, Sr. Email address: me@nathanalden.com PostgreSQL version: 9.2.2 Operating system: Windows 7 x64 Description:=20=20=20=20=20=20=20=20 - Create new group role called my_group with default settings - Create a new database called test_database with default settings - Run the following SQL: alter default privileges in schema public grant all on tables to my_group; alter default privileges in schema public grant all on functions to my_group; alter default privileges in schema public grant all on sequences to my_group; alter default privileges in schema public grant all on types to my_group; - Using pgAdmin III, backup the test_database database using the plain format and note the error. Here's the log: C:/Program Files/PostgreSQL/9.2/bin\pg_dump.exe --host localhost --port 5432 --username "postgres" --no-password --format plain --verbose --file "D:\Databases\PostgreSQL Backups\test_database.backup" "test_database" pg_dump: reading schemas pg_dump: reading user-defined tables pg_dump: reading extensions pg_dump: reading user-defined functions pg_dump: reading user-defined types pg_dump: reading procedural languages pg_dump: reading user-defined aggregate functions pg_dump: reading user-defined operators pg_dump: reading user-defined operator classes pg_dump: reading user-defined operator families pg_dump: reading user-defined text search parsers pg_dump: reading user-defined text search templates pg_dump: reading user-defined text search dictionaries pg_dump: reading user-defined text search configurations pg_dump: reading user-defined foreign-data wrappers pg_dump: reading user-defined foreign servers pg_dump: reading default privileges pg_dump: reading user-defined collations pg_dump: reading user-defined conversions pg_dump: reading type casts pg_dump: reading table inheritance information pg_dump: reading rewrite rules pg_dump: finding extension members pg_dump: finding inheritance relationships pg_dump: reading column info for interesting tables pg_dump: flagging inherited columns in subtables pg_dump: reading indexes pg_dump: reading constraints pg_dump: reading triggers pg_dump: reading large objects pg_dump: reading dependency data pg_dump: saving encoding =3D UTF8 pg_dump: saving standard_conforming_strings =3D on pg_dump: saving database definition pg_dump: unknown object type (84) in default privileges Process returned exit code 1. - Again in pgAdmin III, right-click the public schema and choose Properties - Navigate to the Default Privileges tab and note how no default privileges show up, even though they are present --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs