dbTalk Databases Forums  

Re: [BUGS] BUG #1218: COPY usage in script with CR/LF invoking from

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss Re: [BUGS] BUG #1218: COPY usage in script with CR/LF invoking from in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bruce Momjian
 
Posts: n/a

Default Re: [BUGS] BUG #1218: COPY usage in script with CR/LF invoking from - 08-15-2004 , 07:19 PM







Yea, we just found this failure and the fix will be in beta2 and is in
CVS now. To work around it, convert it to unix newlines.

---------------------------------------------------------------------------

PostgreSQL Bugs List wrote:
Quote:
The following bug has been logged online:

Bug reference: 1218
Logged by: OU

Email address: moebius444_mapson (AT) hotmail (DOT) com

PostgreSQL version: 8.0 Beta

Operating system: Windows XP

Description: COPY usage in script with CR/LF invoking from psql break
after '\.'

Details:

My Pg version: PostgreSQL 8.0.0beta1 on i686-pc-mingw32...
runs on wxp.

Running the following content in a script with CR/LF by a '\i script_name'
call in psql returns nothing (ok with LF):

=========8<-----------------------------------
CREATE TABLE test (
id INTEGER NOT NULL DEFAULT 0,
value INTEGER NOT NULL DEFAULT 0
);

COPY test FROM STDIN;
1 0
2 0
\.

SELECT count(*) FROM test;



---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo (AT) postgresql (DOT) org)

--
Bruce Momjian | http://candle.pha.pa.us
pgman (AT) candle (DOT) pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.