pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
HOW-TO migrate database
4+ messages / 3 participants
[nested] [flat]

* HOW-TO migrate database
@ 2001-07-17 08:05 Marian Sabo <sabo@cps.sk>
  2001-07-17 16:45 ` Re: HOW-TO migrate database Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 4+ messages in thread

From: Marian Sabo @ 2001-07-17 08:05 UTC (permalink / raw)
  To: pgsql-admin

Hello

I have a many databases on server "one" in postgres-6.5.2

How can I copy my databases to a new server with new postgres vsersion
(7.1.2) ?

on first server I run : pg_dumpall -o > outputfile, but on new server
pg_restore don't understand the data format.

the same result is on pg_dump dbname > file and on second server pg_restore
file ...

How it is possible to copy all databases from one (6.5.2) to second (7.1.2)
server ?

Many thanks

Marian Sabo





^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: HOW-TO migrate database
  2001-07-17 08:05 HOW-TO migrate database Marian Sabo <sabo@cps.sk>
@ 2001-07-17 16:45 ` Tom Lane <tgl@sss.pgh.pa.us>
  2001-07-18 03:10   ` Re: HOW-TO migrate database SUVRANSHU KAR <suvranshu_k@yahoo.com>
  2001-07-19 06:05   ` Re: HOW-TO migrate database Marian Sabo <sabo@cps.sk>
  0 siblings, 2 replies; 4+ messages in thread

From: Tom Lane @ 2001-07-17 16:45 UTC (permalink / raw)
  To: Marian Sabo <sabo@cps.sk>; +Cc: pgsql-admin

"Marian Sabo" <sabo@cps.sk> writes:
> I have a many databases on server "one" in postgres-6.5.2
> How can I copy my databases to a new server with new postgres vsersion
> (7.1.2) ?
> on first server I run : pg_dumpall -o > outputfile, but on new server
> pg_restore don't understand the data format.

pg_dumpall is the right approach, though I would not recommend using -o.

Possibly you will need to do a little bit of editing to cope with
changes from 6.5 to 7.1, although it surprises me to hear it.  What
problems are you seeing, exactly, when you try to load the dump script?

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: HOW-TO migrate database
  2001-07-17 08:05 HOW-TO migrate database Marian Sabo <sabo@cps.sk>
  2001-07-17 16:45 ` Re: HOW-TO migrate database Tom Lane <tgl@sss.pgh.pa.us>
@ 2001-07-18 03:10   ` SUVRANSHU KAR <suvranshu_k@yahoo.com>
  1 sibling, 0 replies; 4+ messages in thread

From: SUVRANSHU KAR @ 2001-07-18 03:10 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; Marian Sabo <sabo@cps.sk>; +Cc: pgsql-admin

Hi All,

Actually we also faced some in migration from Postgres
6.5.2 to 7.0- both upon Red Hat Linux, and 7.0 to
7.1.2 ( on NT WS using Cygwin) using pgdump.

In the Ist case, Tables and Index were no problem, but
data didnot come up. So we seperately edited the data
part from dump file and executed it through
pgsql.Tables and Index were no problem, but data
didnot come up. But 7.1.2 couldnot reconnize the data
format easily. So we wrote a front end program in
delphi to migrate.

Bye now.

KAR

For the 2nd case, 
--- Tom Lane <tgl@sss.pgh.pa.us> wrote:
> "Marian Sabo" <sabo@cps.sk> writes:
> > I have a many databases on server "one" in
> postgres-6.5.2
> > How can I copy my databases to a new server with
> new postgres vsersion
> > (7.1.2) ?
> > on first server I run : pg_dumpall -o >
> outputfile, but on new server
> > pg_restore don't understand the data format.
> 
> pg_dumpall is the right approach, though I would not
> recommend using -o.
> 
> Possibly you will need to do a little bit of editing
> to cope with
> changes from 6.5 to 7.1, although it surprises me to
> hear it.  What
> problems are you seeing, exactly, when you try to
> load the dump script?
> 
> 			regards, tom lane
> 
> ---------------------------(end of
> broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster


=====
From SKAR. suvranshu_k@yahoo.com
Good Day!

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: HOW-TO migrate database
  2001-07-17 08:05 HOW-TO migrate database Marian Sabo <sabo@cps.sk>
  2001-07-17 16:45 ` Re: HOW-TO migrate database Tom Lane <tgl@sss.pgh.pa.us>
@ 2001-07-19 06:05   ` Marian Sabo <sabo@cps.sk>
  1 sibling, 0 replies; 4+ messages in thread

From: Marian Sabo @ 2001-07-19 06:05 UTC (permalink / raw)
  To: pgsql-admin

Hello

I use the "-d" switch and data format is correctly exported from database.
There's no problem to import table schemes and data to new 7.1.2

Marian Sabo

"Tom Lane" <tgl@sss.pgh.pa.us> wrote in message
news:25373.995388342@sss.pgh.pa.us...
> "Marian Sabo" <sabo@cps.sk> writes:
> > I have a many databases on server "one" in postgres-6.5.2
> > How can I copy my databases to a new server with new postgres vsersion
> > (7.1.2) ?
> > on first server I run : pg_dumpall -o > outputfile, but on new server
> > pg_restore don't understand the data format.
>
> pg_dumpall is the right approach, though I would not recommend using -o.
>
> Possibly you will need to do a little bit of editing to cope with
> changes from 6.5 to 7.1, although it surprises me to hear it.  What
> problems are you seeing, exactly, when you try to load the dump script?
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster





^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2001-07-19 06:05 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-07-17 08:05 HOW-TO migrate database Marian Sabo <sabo@cps.sk>
2001-07-17 16:45 ` Tom Lane <tgl@sss.pgh.pa.us>
2001-07-18 03:10   ` SUVRANSHU KAR <suvranshu_k@yahoo.com>
2001-07-19 06:05   ` Marian Sabo <sabo@cps.sk>

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