Received: from marketingchallenge.com (marketingchallenge.com [64.40.111.205] (may be forged)) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id f26Ijmx54903 for ; Tue, 6 Mar 2001 13:45:48 -0500 (EST) (envelope-from drfrog@smartt.com) Received: (qmail 21000 invoked from network); 6 Mar 2001 18:45:46 -0000 Received: from clayton-cottingham.imc (HELO smartt.com) (drfrog@10.1.4.1) by marketingchallenge.com with SMTP; 6 Mar 2001 18:45:46 -0000 Message-ID: <3AA530D1.47E532AF@smartt.com> Date: Tue, 06 Mar 2001 10:47:45 -0800 From: clayton cottingham X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.17-21mdk i686) X-Accept-Language: en MIME-Version: 1.0 To: "Brett W. McCoy" CC: Josh Berkus , sqllist , Jeff MacDonald Subject: Re: Quick question MySQL --> PgSQL References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200103/114 X-Sequence-Number: 1765 "Brett W. McCoy" wrote: > > On Tue, 6 Mar 2001, Josh Berkus wrote: > > > Just a quick question ... I need to do a regular transfer (daily + on > > demand) of data from a MySQL database to a PostgreSQL database and back > > again. Can anybody steer me towards a good script for this, or do I > > have to write my own in PHP? > > Don't think there is an actual migration script (I could be wrong, > though), but a program using Perl DBI or JDBC would make the data access a > bit easier -- if you wrote it generically enough, you could make the data > transfer go both ways with just a command-line switch. > > -- Brett > http://www.chapelperilous.net/~bmccoy/ > ------------------------------------------------------------------------ > Give all orders verbally. Never write anything down that might go into a > "Pearl Harbor File". > > ---------------------------(end of broadcast)--------------------------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) there is one in contrib as well there is some through freshmeat.net