pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: me@nathanalden.com
To: pgsql-bugs@postgresql.org
Subject: BUG #7741: Two bugs when backing up databases with default privileges defined on public schema
Date: Sat, 08 Dec 2012 02:02:52 +0000
Message-ID: <E1Th9ki-0007ii-J2@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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:        

- 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 = UTF8
pg_dump: saving standard_conforming_strings = 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



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (3+ messages)  latest in thread

Message-ID: <E1Th9ki-0007ii-J2@wrigleys.postgresql.org>
Permalink:  ../E1Th9ki-0007ii-J2@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/E1Th9ki-0007ii-J2@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: me@nathanalden.com
  Subject: Re: BUG #7741: Two bugs when backing up databases with default privileges defined on public schema
  In-Reply-To: <E1Th9ki-0007ii-J2@wrigleys.postgresql.org>
  References: <E1Th9ki-0007ii-J2@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox