Drop Default Privileges? - Mailing list pgsql-general

From Louis Battuello
Subject Drop Default Privileges?
Date
Msg-id 2CA9A069-45DD-4F47-88C4-0B2685721934@etasseo.com
Whole thread Raw
Responses Re: Drop Default Privileges?  ("David G. Johnston" <david.g.johnston@gmail.com>)
Re: Drop Default Privileges?  (Fabio Pardi <f.pardi@portavita.eu>)
Re: Drop Default Privileges?  (Victor Yegorov <vyegorov@gmail.com>)
List pgsql-general
Is it possible to drop default privileges?

I’m attempting to run a pg_restore into an RDS instance, which doesn’t have a “postgres” user.

I encounter many messages like so:

ALTER DEFAULT PRIVILEGES...

pg_restore: [archiver (db)] Error from TOC entry 10182; 826 253752252 DEFAULT ACL DEFAULT PRIVILEGES FOR TABLES postgres

pg_restore: [archiver (db)] could not execute query: ERROR:  role "postgres" does not exist

    Command was: ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA abc_schema REVOKE ALL ON TABLES  FROM PUBLIC;


I’d like to remove these default privileges on the source database to avoid this error message, but I can’t find the syntax in the documentation (or if it’s possible). I only see GRANT/REVOKE options.

Thanks,
Louis

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Find schema-qualified table name given unqualified name
Next
From: "David G. Johnston"
Date:
Subject: Re: Drop Default Privileges?