Re: [GENERAL] COPY error with null date

2014-03-24 Thread Alban Hertroys
On 24 Mar 2014, at 5:32, Rajeev rastogi wrote: > On 21st March 2014, Ashmita Jain Wrote: > > >It is taking date as an empty string. > >Try defining the empty field as ‘\N’ in your source file. > > ‘\N’ in copy source file always results into an empty string (unless > something written in ne

Re: [GENERAL] COPY error with null date

2014-03-23 Thread Rajeev rastogi
On 21st March 2014, Ashmita Jain Wrote: >It is taking date as an empty string. >Try defining the empty field as '\N' in your source file. '\N' in copy source file always results into an empty string (unless something written in new line), which is correct only. So COPY from such source file will

[GENERAL] COPY error with null date

2014-03-21 Thread Ashmita Jain
It is taking date as an empty string. Try defining the empty field as '\N' in your source file. ::DISCLAIMER:: The contents of this e-mail and any

Re: Res: [GENERAL] COPY ERROR

2010-03-31 Thread Albe Laurenz
paulo matadr wrote: >>> When I try to import big file base.txt( 700MB),I get this: >>> >>> x=# create table arquivo_serasa_marco( varchar(3000)); >>> x=# COPY arquivo_serasa_marco from >>> >>> ERROR: literal newline found in data >>> HINT: Use "\n" to represent newline. >>> CONTEXT: CO

Enc: Res: [GENERAL] COPY ERROR

2010-03-31 Thread paulo matadr
Now attached. - Mensagem encaminhada De: paulo matadr Para: Albe Laurenz Cc: GENERAL Enviadas: Quarta-feira, 31 de Março de 2010 11:03:01 Assunto: Res: [GENERAL] COPY ERROR Txt file, I belive that file not put \n on the end of line,this is possible? follow example in attach

Res: [GENERAL] COPY ERROR

2010-03-31 Thread paulo matadr
Txt file, I belive that file not put \n on the end of line,this is possible? follow example in attach. De: Albe Laurenz Para: paulo matadr *EXTERN* ; GENERAL Enviadas: Terça-feira, 30 de Março de 2010 4:03:51 Assunto: Re: [GENERAL] COPY ERROR paulo

Re: [GENERAL] COPY ERROR

2010-03-30 Thread Albe Laurenz
paulo matadr wrote: > When I try to import big file base.txt( 700MB),I get this: > > x=# create table arquivo_serasa_marco( varchar(3000)); > x=# COPY arquivo_serasa_marco from > '/usr/local/pgsql/data/base.txt'; > ERROR: literal newline found in data > HINT: Use "\n" to represent newli

[GENERAL] COPY ERROR

2010-03-29 Thread paulo matadr
Hi all, When I try to import big file base.txt( 700MB),I get this: x=# create table arquivo_serasa_marco( varchar(3000)); x=# COPY arquivo_serasa_marco from '/usr/local/pgsql/data/base.txt'; ERROR: literal newline found in data HINT: Use "\n" to represent newline. CONTEXT: COPY arquivo

Re: [GENERAL] COPY error with null date

2008-12-07 Thread Tom Lane
Bill Todd <[EMAIL PROTECTED]> writes: > I am beginning to suspect this is impossible. That's correct: see the COPY reference page. A quoted value is never considered to match the NULL string. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgr

Re: [GENERAL] COPY error with null date

2008-12-07 Thread Bill Todd
Joshua D. Drake wrote: On Fri, 2008-12-05 at 12:00 -0700, Bill Todd wrote: Joshua D. Drake wrote: On Thu, 2008-12-04 at 19:35 -0700, Bill Todd wrote: null as IS NULL results in the following error. ERROR: syntax error at or near "is" LINE 5: null as is null

Re: [GENERAL] COPY error with null date

2008-12-04 Thread Joshua D. Drake
On Thu, 2008-12-04 at 19:35 -0700, Bill Todd wrote: > Using 8.3.3 I am trying to import a CSV file using the following copy > command. > > copy billing.contact from 'c:/export/contact.csv' > with delimiter as ',' > null as '' > csv quote as '"'; > > The following record record causes an error be

[GENERAL] COPY error with null date

2008-12-04 Thread Bill Todd
Using 8.3.3 I am trying to import a CSV file using the following copy command. copy billing.contact from 'c:/export/contact.csv' with delimiter as ',' null as '' csv quote as '"'; The following record record causes an error because the third field, "", is a null date and causes the error follo

Re: [GENERAL] COPY error

2007-06-05 Thread Michael Fuhr
On Mon, Jun 04, 2007 at 02:12:00PM -0400, ABHANG RANE wrote: > Im trying to load data from a file using copy command. At the end of > the data, I have appended copy statement as > > copy tablename(col1, col2) from stdin with delimiter as '\t'; > .\ COPY should go before the data and end-of-data

[GENERAL] COPY error

2007-06-04 Thread ABHANG RANE
Hi, Im trying to load data from a file using copy command. At the end of the data, I have appended copy statement as copy tablename(col1, col2) from stdin with delimiter as '\t'; .\ But I get following error. ERROR: syntax error at or near "2713" LINE 1: 2713 {3.70952,1.45728,0.134339,3.99197

Re: [GENERAL] COPY error handling

2004-06-07 Thread Bricklen
Bruno Wolff III wrote: On Fri, Jun 04, 2004 at 14:11:19 +, Bricklen <[EMAIL PROTECTED]> wrote: Hi, I'm not sure if this is the correct group for this question, but I'll post it hoping that it is. I'm loading several ~15 million row files into a table using the COPY command. Apparently one o

[GENERAL] COPY error handling

2004-06-06 Thread Bricklen
Hi, I'm not sure if this is the correct group for this question, but I'll post it hoping that it is. I'm loading several ~15 million row files into a table using the COPY command. Apparently one of the rows, about 6 million in, has an invalid entry. This is causing the COPY command to fail, so m

[GENERAL] Copy error?

2001-09-29 Thread lt
Hi all, Database: 7.1.3 (RPM) OS: Redhat 7.1 Table: Create table jquserdata ( Username varchar(20) not null, primary key, …) Copy some corrupted data from a 7.1.3 (Encoding ASCII) with pg_

Re: [GENERAL] Copy Error

2001-06-20 Thread Thalis A. Kalfigopoulos
Give the fullname of the file. Make sure the file is on the server machine and not your local machine (in case you are forwarding pgaccess to another X terminal) cheers, thalis On 16 Jun 2001, Chakravarthy K Sannedhi wrote: > Hi, > > When I am trying to import a file in my home directory int

Re: [GENERAL] COPY error: pqReadData() -- backend closed the channel unexpectedly

2001-01-08 Thread Tom Lane
Lee Joramo <[EMAIL PROTECTED]> writes: > [PostgreSQL 6.5.2 on powerpc-unknown-linux-gnu, compiled by gcc 2.95.2] Hm. Did you compile at -O0? Pre-7.1 PG is known to have a lot of problems on PPC if compiled with any optimization at all. > The 'classifieds.dat' consists of about 2200 lines. I ha

[GENERAL] COPY error: pqReadData() -- backend closed the channel unexpectedly

2001-01-08 Thread Lee Joramo
I am running to the following error when copying a file to a table: "backend closed the channel unexpectedly" My basic system info: [PostgreSQL 6.5.2 on powerpc-unknown-linux-gnu, compiled by gcc 2.95.2] The Table: able= classifieds +-