Received: from shire.ontko.com (shire.ontko.com [199.164.165.1]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fAFFihm17896 for ; Thu, 15 Nov 2001 10:44:43 -0500 (EST) (envelope-from nickf@ontko.com) Received: from nick (bilbo.ontko.com [199.164.165.101]) by shire.ontko.com (8.9.3/8.9.3/Debian 8.9.3-21) with SMTP id KAA05680; Thu, 15 Nov 2001 10:44:46 -0500 X-Authentication-Warning: shire.ontko.com: Host bilbo.ontko.com [199.164.165.101] claimed to be nick Reply-To: From: "Nick Fankhauser" To: "Elizabeth O'Neill" , Subject: Re: Importing large data files into PostgreSQL Date: Thu, 15 Nov 2001 10:42:51 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 In-Reply-To: X-Archive-Number: 200111/71 X-Sequence-Number: 2596 Liz- Without looking at a chunk of the datafile it is hard to tell what may be wrong, but here are a copy of ideas: If you haven't already looked here, look at this page in the docs: http://www.postgresql.org/idocs/index.php?sql-copy.html try manually inserting a few rows into your table, and then do a dump: pg_dump database_name >test.out Then take a look at test.out- After the object creation sections, it will have a section where it uses the copy command to insert the rows, and you can use this to see what sort of format copy expects. -Nick > -----Original Message----- > From: pgsql-admin-owner@postgresql.org > [mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Elizabeth O'Neill > Sent: Wednesday, November 14, 2001 1:38 PM > To: pgsql-admin@postgresql.org > Subject: [ADMIN] Importing large data files into PostgreSQL > > > Hi i hope some one can help i'm new to PostgreSQL i have been trying to > load data into a table using the "\Copy" function. All the records > (approx. 15,000) will go into the table but the it doesn't seem to > reconise the delimiters because the data is randomly split over the > columns in the table. > > I have tried changing the size of the columns, making sure the > delimiters are correct, changing the delimiters to "," instead of > "", inserting a small section of the data and changing the > data-types of the columns from 'varchar' to 'char' but none of this > makes a difference > > Does anyone know what may be wrong or a better way to import large > chunks of data. > > Please help before i go bald from pulling my hair out > > Thank you in advance > > Liz > > > > ---------------------------(end of broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org >