Received: from montseny-f.ibernet.com (bcnsf.jazztel.es [212.106.195.71] (may be forged)) by postgresql.org (8.11.3/8.11.4) with ESMTP id g09FKAB10221 for ; Wed, 9 Jan 2002 10:20:11 -0500 (EST) (envelope-from manueltrujillo@dorna.es) Received: from localhost.localdomain ([212.163.226.3]) by montseny-f.ibernet.com (Post.Office MTA v3.5.3 release 223 ID# 0-70794U9000L900S0V35) with ESMTP id com; Wed, 9 Jan 2002 16:15:55 +0100 Subject: Re: dumping users objects From: Manuel Trujillo To: Srinivasa Rao Chava Cc: pgsql-admin@postgresql.org In-Reply-To: <66d229f1.0201090657.19eebc5b@posting.google.com> References: <66d229f1.0201090657.19eebc5b@posting.google.com> Content-Type: text/plain; charset=ISO-8859-1 X-Mailer: Evolution/1.0 (Preview Release) Date: 09 Jan 2002 16:23:19 +0100 Message-Id: <1010589802.1065.0.camel@klingon> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by postgresql.org id g09FOcC10915 X-Archive-Number: 200201/38 X-Sequence-Number: 2927 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