pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
(no subject)
7+ messages / 3 participants
[nested] [flat]

* (no subject)
@ 2005-08-12 16:08  Adam O'Toole <adamnb1@hotmail.com>
  0 siblings, 2 replies; 7+ messages in thread

From: Adam O'Toole @ 2005-08-12 16:08 UTC (permalink / raw)
  To: pgsql-general; +Cc: pgsql-novice@postgresql.org

Hello.
I have an instance of postgreSQL 7.4.7 with one database called dbmedia. We 
are moving to postgreSQL 8.1 running on windows2003 server. Can I just copy 
the entire $PGDATA directory to the new 8.1 instance of postgreSQL? Using 
PG_dump/restore?
I heard that I might run into problems because of the difference in PG 
versions and server architectures. If this wont work, what would be the best 
way to get my dbmedia database moved over to the 8.1 instance running on 
windows?
Thank you so much,
Adam





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

* Re:
@ 2005-08-12 16:22  Richard Huxton <dev@archonet.com>
  parent: Adam O'Toole <adamnb1@hotmail.com>
  1 sibling, 1 reply; 7+ messages in thread

From: Richard Huxton @ 2005-08-12 16:22 UTC (permalink / raw)
  To: Adam O'Toole <adamnb1@hotmail.com>; +Cc: pgsql-general; pgsql-novice@postgresql.org

Adam O'Toole wrote:
> Hello.
> I have an instance of postgreSQL 7.4.7 with one database called dbmedia. 
> We are moving to postgreSQL 8.1 running on windows2003 server. Can I 
> just copy the entire $PGDATA directory to the new 8.1 instance of 
> postgreSQL?

No. And 8.1 isn't out yet.

 > Using PG_dump/restore?

Yes

> I heard that I might run into problems because of the difference in PG 
> versions and server architectures. If this wont work, what would be the 
> best way to get my dbmedia database moved over to the 8.1 instance 
> running on windows?

Test it first - there might be something different between 7.4 and 8.0 
that you're relying on. Read the release notes in 8.0 to find out what 
might affect you.

It's generally easier to dump/restore using a version 8 pg_dump - each 
version is a bit smarter, and can talk to older servers.

Oh - and make sure you're familiar with the Unicode issues on Windows.

--
   Richard Huxton
   Archonet Ltd



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

* Re: [despammed]
@ 2005-08-12 16:25  Kretschmer Andreas <andreas_kretschmer@despammed.com>
  parent: Adam O'Toole <adamnb1@hotmail.com>
  1 sibling, 0 replies; 7+ messages in thread

From: Kretschmer Andreas @ 2005-08-12 16:25 UTC (permalink / raw)
  To: pgsql-novice@postgresql.org

Adam O'Toole <adamnb1@hotmail.com> schrieb:

> Hello.
> I have an instance of postgreSQL 7.4.7 with one database called dbmedia. We 
> are moving to postgreSQL 8.1 running on windows2003 server. Can I just copy 
> the entire $PGDATA directory to the new 8.1 instance of postgreSQL? Using 

No! Don't try it, it is useless and dangerous.

Btw.: actual version is 8.0.3, not 8.1.


> PG_dump/restore?

Yes, and use the pg_dump from the 8.0 - Version to dump the old
database.


> I heard that I might run into problems because of the difference in PG 
> versions and server architectures. If this wont work, what would be the 
> best way to get my dbmedia database moved over to the 8.1 instance running 

Under Linux/UNIX, from the new machine: (principle)

pg_dump -h <old_server> <options> | psql <options>



Andreas
-- 
Diese Message wurde erstellt mit freundlicher Unterstützung eines freilau-
fenden Pinguins aus artgerechter Freilandhaltung.   Er ist garantiert frei
von Micro$oft'schen Viren. (#97922 http://counter.li.org)     GPG 7F4584DA
Was, Sie wissen nicht, wo Kaufbach ist? Hier: N 51.05082°, E 13.56889° ;-)



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

* Re:
@ 2005-08-12 17:23  Adam O'Toole <adamnb1@hotmail.com>
  parent: Richard Huxton <dev@archonet.com>
  0 siblings, 2 replies; 7+ messages in thread

From: Adam O'Toole @ 2005-08-12 17:23 UTC (permalink / raw)
  To: dev@archonet.com; andreas_kretschmer@despammed.com; +Cc: pgsql-general; pgsql-novice@postgresql.org

Thanks for the feedback Richard and Andreas...

Ok, I am missing one thing here… my new instance is on a Windows server. How 
will I import the dump from my old 7.4.7 instance running on Linux, into my 
new 8.0.1 instance running on Windows 2003? How would you go about feeding a 
Dump file into a Windows install of postgreSQL 8.0.1? I have been 
researching for a while here, and I just can’t seem to find any info on this 
scenario.
Thanks in advanced !
Adam



Adam O'Toole wrote:
Hello. I have an instance of postgreSQL 7.4.7 with one database called 
dbmedia. We are moving to postgreSQL 8.1 running on windows2003 server. Can 
I just copy the entire $PGDATA directory to the new 8.1 instance of 
postgreSQL?
I heard that I might run into problems because of the difference in PG 
versions and server architectures. If this wont work, what would be the best 
way to get my dbmedia database moved over to the 8.1 instance running on 
windows?


Richard Huxton wrote:
Test it first - there might be something different between 7.4 and 8.0 that 
you're relying on. Read the release notes in 8.0 to find out what might 
affect you.
It's generally easier to dump/restore using a version 8 pg_dump - each 
version is a bit smarter, and can talk to older servers.
Oh - and make sure you're familiar with the Unicode issues on Windows.
--
  Richard Huxton
  Archonet Ltd





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

* Re: [despammed] Re: [GENERAL]
@ 2005-08-14 11:12  Kretschmer Andreas <andreas_kretschmer@despammed.com>
  parent: Adam O'Toole <adamnb1@hotmail.com>
  1 sibling, 1 reply; 7+ messages in thread

From: Kretschmer Andreas @ 2005-08-14 11:12 UTC (permalink / raw)
  To: pgsql-novice@postgresql.org

Adam O'Toole <adamnb1@hotmail.com> schrieb:

> Thanks for the feedback Richard and Andreas...
> 
> Ok, I am missing one thing here? my new instance is on a Windows server. 
> How will I import the dump from my old 7.4.7 instance running on Linux, 
> into my new 8.0.1 instance running on Windows 2003? How would you go about 
> feeding a Dump file into a Windows install of postgreSQL 8.0.1? I have been 

You can do on the windows-machine:

pg_dump -h <old_server> | psql 

I'm not familiar with windows (i hate it), but i think, this should be
possible. Complete the calls to pg_dump & psql with the right
parameters.
If this fails, check if you are able to connect to the remote PG-Server,
adapt there the pg_hba.conf - file, if is necessary.

http://www.postgresql.org/docs/current/static/client-authentication.html


Andreas
-- 
Diese Message wurde erstellt mit freundlicher Unterstützung eines freilau-
fenden Pinguins aus artgerechter Freilandhaltung.   Er ist garantiert frei
von Micro$oft'schen Viren. (#97922 http://counter.li.org)     GPG 7F4584DA
Was, Sie wissen nicht, wo Kaufbach ist? Hier: N 51.05082°, E 13.56889° ;-)



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

* Re: [despammed] Re: [GENERAL]
@ 2005-08-14 17:03  Adam O'Toole <adamnb1@hotmail.com>
  parent: Kretschmer Andreas <andreas_kretschmer@despammed.com>
  0 siblings, 0 replies; 7+ messages in thread

From: Adam O'Toole @ 2005-08-14 17:03 UTC (permalink / raw)
  To: andreas_kretschmer@despammed.com; pgsql-novice@postgresql.org

<html><div style='background-color:'><DIV class=RTE>
<P>Thanks,</P>
<P>I got it working now. I was able to do it two ways. To do just a PG_dump of a database you can use PGAdmin to backup the old one, and use PGAdmin again to restore it on the windows install. If you want to get the users and groups as well, then use the PG_dumpall to get the dump file, and as you said, you can restore it on the windows instance using the command prompt, the pg_restore.exe is found in the Bin directory of the postgreSQL 8 install location.&nbsp;&nbsp;<BR><BR></P><BR><BR><BR>&gt;From: Kretschmer Andreas &lt;andreas_kretschmer@despammed.com&gt;<BR>&gt;To: pgsql-novice@postgresql.org<BR>&gt;Subject: Re: [NOVICE] [despammed] Re: [GENERAL]<BR>&gt;Date: Sun, 14 Aug 2005 13:12:51 +0200<BR>&gt;<BR>&gt;Adam O'Toole &lt;adamnb1@hotmail.com&gt; schrieb:<BR>&gt;<BR>&gt; &gt; Thanks for the feedback Richard and Andreas...<BR>&gt; &gt;<BR>&gt; &gt; Ok, I am missing one thing here? my 
new instance is on a Windows server.<BR>&gt; &gt; How will I import the dump from my old 7.4.7 instance running on Linux,<BR>&gt; &gt; into my new 8.0.1 instance running on Windows 2003? How would you go about<BR>&gt; &gt; feeding a Dump file into a Windows install of postgreSQL 8.0.1? I have been<BR>&gt;<BR>&gt;You can do on the windows-machine:<BR>&gt;<BR>&gt;pg_dump -h &lt;old_server&gt; | psql<BR>&gt;<BR>&gt;I'm not familiar with windows (i hate it), but i think, this should be<BR>&gt;possible. Complete the calls to pg_dump &amp; psql with the right<BR>&gt;parameters.<BR>&gt;If this fails, check if you are able to connect to the remote PG-Server,<BR>&gt;adapt there the pg_hba.conf - file, if is necessary.<BR>&gt;<BR>&gt;http://www.postgresql.org/docs/current/static/client-authentication.html<BR>&gt;<BR>... Message wurde erstellt mit freundlicher 
Unterstützung eines freilau-<BR>&gt;fenden Pinguins aus artgerechter Freilandhaltung.&nbsp;&nbsp; Er ist garantiert frei<BR>&gt;von Micro$oft'schen Viren. (#97922 http://counter.li.org)&nbsp;&nbsp;&nbsp;&nbsp; GPG 7F4584DA<BR>&gt;Was, Sie wissen nicht, wo Kaufbach ist? Hier: N 51.05082°, E 13.56889° ;-)<BR>&gt;<BR>&gt;---------------------------(end of broadcast)---------------------------<BR>&gt;TIP 9: In versions below 8.0, the planner will ignore your desire to<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;choose an index scan if your joining column's datatypes do not<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;match<BR></DIV></div></html>




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

* Re:
@ 2005-08-14 18:15  Richard Huxton <dev@archonet.com>
  parent: Adam O'Toole <adamnb1@hotmail.com>
  1 sibling, 0 replies; 7+ messages in thread

From: Richard Huxton @ 2005-08-14 18:15 UTC (permalink / raw)
  To: Adam O'Toole <adamnb1@hotmail.com>; +Cc: andreas_kretschmer@despammed.com; pgsql-general; pgsql-novice@postgresql.org

Adam O'Toole wrote:
> Thanks for the feedback Richard and Andreas...
> 
> Ok, I am missing one thing here� my new instance is on a Windows server. 
> How will I import the dump from my old 7.4.7 instance running on Linux, 
> into my new 8.0.1 instance running on Windows 2003? How would you go 
> about feeding a Dump file into a Windows install of postgreSQL 8.0.1? I 
> have been researching for a while here, and I just can�t seem to find 
> any info on this scenario.

Exactly as you would for any other platform - pg_restore or psql from a 
text-dump. All the standard unix applications are still there on Windows.

--
   Richard Huxton
   Archonet Ltd




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


end of thread, other threads:[~2005-08-14 18:15 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-08-12 16:08  Adam O'Toole <adamnb1@hotmail.com>
2005-08-12 16:22 ` Re: Richard Huxton <dev@archonet.com>
2005-08-12 17:23   ` Re: Adam O'Toole <adamnb1@hotmail.com>
2005-08-14 11:12     ` Re: [despammed] Re: [GENERAL] Kretschmer Andreas <andreas_kretschmer@despammed.com>
2005-08-14 17:03       ` Re: [despammed] Re: [GENERAL] Adam O'Toole <adamnb1@hotmail.com>
2005-08-14 18:15     ` Re: Richard Huxton <dev@archonet.com>
2005-08-12 16:25 ` Re: [despammed] Kretschmer Andreas <andreas_kretschmer@despammed.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