[HACKERS] COPY FROM STDIN behaviour on end-of-file - Mailing list pgsql-hackers

From Thomas Munro
Subject [HACKERS] COPY FROM STDIN behaviour on end-of-file
Date
Msg-id CAEepm=0MCGfYf=JAMiYhO6JPtv9-3ZfBo8fcGeCZ8oMzaw+Z+Q@mail.gmail.com
Whole thread Raw
Responses Re: [HACKERS] COPY FROM STDIN behaviour on end-of-file
List pgsql-hackers
Hi hackers,

I you hit ^d while COPY FROM STDIN is reading then subsequent COPY
FROM STDIN commands return immediately.  That's because we never clear
the end-of-file state on the libc FILE.  Shouldn't we do that, perhaps
with something like the attached?

-- 
Thomas Munro
http://www.enterprisedb.com

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: [HACKERS] src/test/ssl/t/001_ssltests.pl should not tromp on file permissions
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] Receive buffer size for the statistics socket