Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f92HYQn18829 for ; Tue, 2 Oct 2001 13:34:26 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.4/8.11.4) id f92HRhi18194 for pgsql-admin@postgresql.org; Tue, 2 Oct 2001 13:27:43 -0400 (EDT) (envelope-from news) X-Newsgroups: comp.databases.postgresql.admin From: marc@oscar.eng.cv.net (Marc Spitzer) Subject: Re: moving user obejcts to production References: <66d229f1.0110020612.5c87e712@posting.google.com> Message-ID: User-Agent: slrn/0.9.7.0 (FreeBSD) Lines: 28 Date: Tue, 02 Oct 2001 17:14:21 GMT Organization: Optimum Online To: pgsql-admin@postgresql.org X-Archive-Number: 200110/21 X-Sequence-Number: 2267 In article <66d229f1.0110020612.5c87e712@posting.google.com>, Srinivasa Rao Chava wrote: > Hi, > I have a postgresql database(DEPG) in development which contains three > user accounts(pldev,extranet,intranet) for different applications. One > application(pldev) has been finished development and the other two are > still in development stage. The finished application(pldev) which > contains several tables , functions, procedures and triggers need to > be moved to production, leaving the unfinished in development. > I createa database PGPROD in production box and trying to move only > the objects belonging to finished application(pldev).If I use pg_dump, > it is dumping full database. > I need to dump only the finished application account(pldev). > In oracle , we use export with owner= username option for exporting > the individual users objects. and import in production server into the > respective user's account,say pldev in production database. > How to do it in postgresql? and is there any way to do it? > Thanks > chava I do not know much about postgress yet but how about this: 1: dump db somewhere 2: install it somewhere else 3: make changes needed to make it production( remove 2 users) 4: dump the new production db 5: ship marc