Re: [HACKERS] Patch: forcing object owner in TOC file

2012-10-15 Thread Piotr Gasidło
2012/10/15 Andrew Dunstan : > Sorry, but this doesn't strike me as a very good idea at all. Why not just > alter the table ownership after the restore is done? Yes, I could restore, wrote later ALTER ... OWNER TO ... - but this method allowed me to do it quicker. > If we start allowing > stuff ot

Re: [HACKERS] Patch: forcing object owner in TOC file

2012-10-15 Thread Andrew Dunstan
On 10/15/2012 07:59 AM, Piotr Gasidło wrote: Hello, I've created small patch which allows me easily change owner during pg_restore with backup in custom format (-Fc). This simplifies migration when users on new server are different that ones in backup file. First, I get TOC file: pg_restore -

[HACKERS] Patch: forcing object owner in TOC file

2012-10-15 Thread Piotr Gasidło
Hello, I've created small patch which allows me easily change owner during pg_restore with backup in custom format (-Fc). This simplifies migration when users on new server are different that ones in backup file. First, I get TOC file: pg_restore -Fc -l mybackup.custom > mybackup.toc Then, I ca