Re: maximum size of psql query file - Mailing list pgsql-novice

From Josh Berkus
Subject Re: maximum size of psql query file
Date
Msg-id 200207241047.51387.josh@agliodbs.com
Whole thread Raw
In response to maximum size of psql query file  ("Jules Alberts" <jules.alberts@arbodienst-limburg.nl>)
List pgsql-novice
Jules,

> I'm building a program that will convert out current database (foxpro
> tables with encrypted content) to postgresql. The program will read
> each .DBF file and create SQL statements in a textfile that I can feed
> into postgresql with 'dos2unix; pgsql -f statements.sql'.

Have you considered using COPY instead?   You can have your Foxpro script dump
to tab-delimited text files, and a 500mb COPY load is less crash-prone than
500mb of SQL commands.

--
-Josh Berkus
 Aglio Database Solutions
 San Francisco


pgsql-novice by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Security, IP and username restrictions
Next
From: Tom Lane
Date:
Subject: Re: Killing postgres processes.