pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedmoving database to production
4+ messages / 3 participants
[nested] [flat]
* moving database to production
@ 2001-09-28 19:12 Srinivasa Rao Chava <s.chava@wcom.com>
2001-09-29 13:26 ` Re: moving database to production Martins Zarins <mark@vestnesis.lv>
0 siblings, 1 reply; 4+ messages in thread
From: s.chava@wcom.com @ 2001-09-28 19:12 UTC (permalink / raw)
To: pgsql-admin
Hi,
How to move the database from devleopment to production.
For example, the database is already in production and some of the
tables required modifications. First those modification were
implemented in develoment.
The modified tables need to be moved to production from
development,not the complete database.
So how to move the selective tables in development database to
production database.
Thanks
chava
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: moving database to production
2001-09-28 19:12 moving database to production Srinivasa Rao Chava <s.chava@wcom.com>
@ 2001-09-29 13:26 ` Martins Zarins <mark@vestnesis.lv>
2001-10-01 13:31 ` Re: moving database to production Srinivasa R Chava <s.chava@wcom.com>
2001-10-01 16:54 ` Re: moving database to production Srinivasa Rao Chava <s.chava@wcom.com>
0 siblings, 2 replies; 4+ messages in thread
From: Martins Zarins @ 2001-09-29 13:26 UTC (permalink / raw)
To: pgsql-admin
On 28 Sep 2001, at 12:12, Srinivasa Rao Chava wrote:
> Hi,
> How to move the database from devleopment to production.
> For example, the database is already in production and some of the
> tables required modifications. First those modification were
> implemented in develoment. The modified tables need to be moved to
> production from development,not the complete database. So how to move
> the selective tables in development database to production database.
> Thanks chava
pg_dump -t <new_table> <dev_db> |psql <prod_db>
Mark
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: moving database to production
2001-09-28 19:12 moving database to production Srinivasa Rao Chava <s.chava@wcom.com>
2001-09-29 13:26 ` Re: moving database to production Martins Zarins <mark@vestnesis.lv>
@ 2001-10-01 13:31 ` Srinivasa R Chava <s.chava@wcom.com>
1 sibling, 0 replies; 4+ messages in thread
From: Srinivasa R Chava @ 2001-10-01 13:31 UTC (permalink / raw)
To: mark@vestnesis.lv; +Cc: pgsql-admin
Thanks for your response. But I want to move the database objects
owned by a particualr user.
say there are 20 tables,and other database objects like
functions, procedures etc owned by two different users. I want to
move the database objects( tables, and other objects like
procedures, sequences) owned by a particular user to production.
If I use pg_dump with -t option, I can move the tables. But what
about the other objects like sequences and procedures owned by a
particualar user. In oracle, we can use export and import with
owner=user name option to move the complete schema owned by a
particualr user. How to do it ion pgsql.
Thanks
chava
--
Srinivasa R Chava (Chava) <s.chava@wcom.com>
Application Developer
Corporate Intra/Internet Systems
WORLDCOM - http://www.worldcom.com/ - NASDAQ:WCOM
500 Clinton Center Drive (Corporate Headquarters)
Clinton, Mississippi (MS) USA 39056
(601)460-3122 / vnet4603122 / (800)844-1009 / FAX(601)460-8257
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: moving database to production
2001-09-28 19:12 moving database to production Srinivasa Rao Chava <s.chava@wcom.com>
2001-09-29 13:26 ` Re: moving database to production Martins Zarins <mark@vestnesis.lv>
@ 2001-10-01 16:54 ` Srinivasa Rao Chava <s.chava@wcom.com>
1 sibling, 0 replies; 4+ messages in thread
From: s.chava@wcom.com @ 2001-10-01 16:54 UTC (permalink / raw)
To: pgsql-admin
Thanks for your response. But I want to move the database objects
owned by a particualr user.
say there are 20 tables,and other database objects like
functions, procedures etc owned by two different users. I want to
move the database objects( tables, and other objects like
procedures, sequences) owned by a particular user to production.
If I use pg_dump with -t option, I can move the tables. But what
about the other objects like sequences and procedures owned by a
particualar user. In oracle, we can use export and import with
owner=user name option to move the complete schema owned by a
particualr user. How to do it in pgsql.
Thanks
chava
> > Hi,
> > How to move the database from devleopment to production.
> > For example, the database is already in production and some of the
> > tables required modifications. First those modification were
> > implemented in develoment. The modified tables need to be moved to
> > production from development,not the complete database. So how to move
> > the selective tables in development database to production database.
> > Thanks chava
>
> pg_dump -t <new_table> <dev_db> |psql <prod_db>
>
> Mark
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2001-10-01 16:54 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-09-28 19:12 moving database to production Srinivasa Rao Chava <s.chava@wcom.com>
2001-09-29 13:26 ` Martins Zarins <mark@vestnesis.lv>
2001-10-01 13:31 ` Srinivasa R Chava <s.chava@wcom.com>
2001-10-01 16:54 ` Srinivasa Rao Chava <s.chava@wcom.com>
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