dbTalk Databases Forums  

access xp postgres data from linux

comp.databases.postgresql.questions comp.databases.postgresql.questions


Discuss access xp postgres data from linux in the comp.databases.postgresql.questions forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mike Ballard
 
Posts: n/a

Default access xp postgres data from linux - 08-29-2005 , 09:45 PM







I run an xp program in vmware that uses a postgresql db. I want to back
up this db from linux. The cmd I was given to backup the db from within
xp is:

pg_dump.exe -i -h <server> -p <port> -U <user> -F c -v -f <filename> <DB Name>

If xp/vwmare is not running and I mount the disc the xp postgresql data is
on and do:

/bin/su - mike -c "/usr/bin/postmaster -D /mnt/win_d/Program\ Files/PostgreSQL/8.0/data"

so that the linux postgresql is pointing to the xp data, what do I use for
"-h <server>" and "-p <port>" in the pg_dump cmd?

Mike
--

Reply With Quote
  #2  
Old   
Scott Auge
 
Posts: n/a

Default Re: access xp postgres data from linux - 08-30-2005 , 12:05 AM






In article <m2hdd884v6.fsf (AT) west_f1 (DOT) net>,
Mike Ballard <dont_w (AT) nt_spam (DOT) org> wrote:

Quote:
I run an xp program in vmware that uses a postgresql db. I want to back
up this db from linux. The cmd I was given to backup the db from within
xp is:

pg_dump.exe -i -h <server> -p <port> -U <user> -F c -v -f <filename> <DB
Name

If xp/vwmare is not running and I mount the disc the xp postgresql data is
on and do:

/bin/su - mike -c "/usr/bin/postmaster -D /mnt/win_d/Program\
Files/PostgreSQL/8.0/data"

so that the linux postgresql is pointing to the xp data, what do I use for
"-h <server>" and "-p <port>" in the pg_dump cmd?

Mike
--
I never mix databases between operating systems. I have found in most
projects, it is very rare for branches of code that are OS dependent to
be up to date concurrently.

I would have a database for XP and a database for Linux.

--
Available for Hire! http://amduus.com/Resumes/


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.