Trying to change the owner of some tables - Mailing list pgsql-admin

From John Scalia
Subject Trying to change the owner of some tables
Date
Msg-id 558B6B19.1050305@gmail.com
Whole thread Raw
Responses Re: Trying to change the owner of some tables  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Re: Trying to change the owner of some tables  ("David G. Johnston" <david.g.johnston@gmail.com>)
Re: Trying to change the owner of some tables  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-admin
Hi all,

I'm trying to build a new server from a copy of one of our live Dbs, and I imported the schema from there and am now
tryingto get this new server setup with the right ownership 
and permissions. All the tables are/were owned by user A, and I've changed most of them to user B (names changed to
protectthe innocent, etc.,) However, some tables from the 
pg_dump I used to grab the schema, do not show up using \d nor can I see them in pg_class. I only found them when I
triedto drop user A and psql complained. They appear to be in a 
different schema and I could change them one at a time, but there are more than 2200 of these. For the tables I've
alreadychanged, I just performed an update on pg_class where 
relowner = numeric ID of user A to set that to the numeric ID of user B.

Now, this is a 9.2 server on CentOS, but I've not seen this behavior anywhere before. Where else should I see these?
Theonly success I've had is \d+ new_schema.* and that doesn't 
help me change them.

Any assistance would be gratefully accepted,
Jay



pgsql-admin by date:

Previous
From: Jerry Sievers
Date:
Subject: Re: PostgreSQL to Oracle DBLink
Next
From: Alvaro Herrera
Date:
Subject: Re: Trying to change the owner of some tables