pg_dump: Refactor code that constructs ALTER ... OWNER TO commands - Mailing list pgsql-hackers

From Peter Eisentraut
Subject pg_dump: Refactor code that constructs ALTER ... OWNER TO commands
Date
Msg-id 0a00f923-599a-381b-923f-0d802a727715@enterprisedb.com
Whole thread Raw
Responses Re: pg_dump: Refactor code that constructs ALTER ... OWNER TO commands  (Corey Huinker <corey.huinker@gmail.com>)
List pgsql-hackers
Avoid having to list all the possible object types twice.  Instead, only 
_getObjectDescription() needs to know about specific object types.  It 
communicates back to _printTocEntry() whether an owner is to be set.

In passing, remove the logic to use ALTER TABLE to set the owner of 
views and sequences.  This is no longer necessary.  Furthermore, if 
pg_dump doesn't recognize the object type, this is now a fatal error, 
not a warning.
Attachment

pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Crash after a call to pg_backup_start()
Next
From: Alvaro Herrera
Date:
Subject: Re: Question about savepoint level?