[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dependencies unmet for dbf2pg and postgresql?



On Wed, Jan 13, 1999 at 03:13:16AM -0200, Eduardo Marcel Macan wrote:

> I am reverting my postgres environment to the one I had in hamm in
> order to have my work done, since I depend upon dbf2pg. Should I file
> a bug against it or I am missing something?

you might like to take a look at libxbase-perl. i found it far more
flexible than dbf2pg. it's very easy to write perl scripts to create
postgres databases from dbf files.

if you like, i can email you my (work-in-progress but still quite
useful) scripts.


list-table.pl   -- reads in a .dbf and generates sql commands on stdout to
                   creating a pg table.  not perfect, but gets the job done.

list-records.pl -- dump all records in a dbase .dbf file to stdout in 
                   "INSERT INTO <table>..." format.

inject-records.pl -- similar to list-records, but "injects" the records
                     directly into an already created pg database.


craig

--
craig sanders


Reply to: