Command line export or copy utility?

From: Francisco Reyes <lists(at)stringsutils(dot)com>
To: PostgreSQL general <pgsql-general(at)postgresql(dot)org>
Subject: Command line export or copy utility?
Date: 2007-05-22 22:07:35
Message-ID: cone.1179871655.805642.21911.5001@35st.simplicato.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Does anyone know of any export or copy utility that runs on FreeBSD?
I basically need a program that will connect to one database, do a select
and copy the result to a second database.

Alternatively a tool which would export the data in a format suitable to
be loaded by psql is just fine.

Found some windows utilities that pretty much do what I need, but I need a
utility that would run from a FreeBSD machine since the machines where the
data will be getting moved are both FreeBSD and at a data center.

I am about to write a program for this in python, but if anyone knows of a
utility would be great.

I will be doing queries like:
select * from source table where <condition is true>

I found pgexport
http://gborg.postgresql.org/project/pgexport/projdisplay.php, but it did not
support the where clause and an email to the author bounced which I guess
means he may no longer support the program. If the program wasn't in perl I
wouldn't mind fixing it up. :-)

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Ribe 2007-05-22 23:02:07 Re: Command line export or copy utility?
Previous Message Cyril VELTER 2007-05-22 21:18:31 [Re] Re: [Re] Re: Winsock error 10035 while trying to upgrade from 8.0 to 8.2