Re: Permissions on large objects - db backup and restore

From: David Wall <d(dot)wall(at)computer(dot)org>
To: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Permissions on large objects - db backup and restore
Date: 2013-04-04 17:08:44
Message-ID: 515DB39C.70409@computer.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On 4/3/2013 5:57 PM, Tom Lane wrote:
> $ pg_restore -? ... -O, --no-owner skip restoration of object
> ownership ... So there you have it. pg_restore just restored all the
> objects (blobs and otherwise) as owned by the user running it. I
> should think you'd have had issues with other things besides the blobs
> by now. regards, tom lane

Thanks you! Unsure why that -O was being used since when I check
version control, it's been in there since PG 8.3 days. I hadn't checked
on its meaning and just assumed it was something to do with OIDs like
the pg_dump flags. No doubt it solved something back then since TABLE
GRANTS could be run after a restore since before 9.0 the loids had no
permission issue to deal with.

Thanks again, Tom! Best regards, David

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Mads.Tandrup 2013-04-04 19:24:11 Re: CVE-2013-1899 security issue and limited IP addresses in pg_hba.conf
Previous Message Bruce Momjian 2013-04-04 16:44:37 Re: CVE-2013-1899 security issue and limited IP addresses in pg_hba.conf