pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Manuel Trujillo <manueltrujillo@dorna.es>
To: Srinivasa Rao Chava <s.chava@wcom.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: dumping users objects
Date: 09 Jan 2002 16:23:19 +0100
Message-ID: <1010589802.1065.0.camel@klingon> (raw)
In-Reply-To: <66d229f1.0201090657.19eebc5b@posting.google.com>
References: <66d229f1.0201090657.19eebc5b@posting.google.com>

El mié, 09-01-2002 a las 15:57, Srinivasa Rao Chava escribió:
> I have a database, called DEVE, which has got two users in it. say one
> user is tom and the other is james.Tom has finished his development
> work and james has not yet been finished. we want to move the database
> objects owned by tom to production.How to do it. if i take dump of the
> comlete database , it is including the james objects also, which i
> don't want to do. If  I take pg_dump with -t options,i.e tables
> options, what about the sequences , triggers and other objects owned
> by tom. Moreover, it is cumbersome to take pg_dump with -t option, as
> there are more than 100 tables owned by tom.
> So please help me how to move the development schema to production,
> based on owner
> Thanks in advance for any help.

I think if you entry into database (psql DEVE), and make a \d{p|S|l}
(list permissions/system tables/objects, you could solve your litle
problem.
If you make a small shell script, you could obtain a nice report about
this information.
The \dt option, also make the same effect (more or less).

Have a nice day ;-)
TooManySecrets

-- 
Manuel Trujillo         manueltrujillo@dorna.es
Technical Engineer      http://www.motograndprix.com
Dorna Sports S.L.       +34 93 4702864




view thread (2+ messages)

Message-ID: <1010589802.1065.0.camel@klingon>
Permalink:  ../1010589802.1065.0.camel@klingon/
Also on:    postgresql.org/message-id/1010589802.1065.0.camel@klingon

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: manueltrujillo@dorna.es, s.chava@wcom.com
  Subject: Re: dumping users objects
  In-Reply-To: <1010589802.1065.0.camel@klingon>
  References: <66d229f1.0201090657.19eebc5b@posting.google.com> <1010589802.1065.0.camel@klingon>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox