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

From: "PostgreSQL Bugs List" <pgsql-bugs(at)postgresql(dot)org>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #1218: COPY usage in script with CR/LF invoking from psql break after '\.'
Date: 2004-08-15 19:15:02
Message-ID: 20040815191502.D0D505A107E@www.postgresql.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


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;

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Andreas Pflug 2004-08-15 21:33:38 Re: postgresql 8 (pgAdminIII) crashes when login form X is
Previous Message Peter Eisentraut 2004-08-15 19:08:47 Re: postgresql 8 (pgAdminIII) crashes when login form X is clicked