Re: [HACKERS] stdin/stdout mismatch for COPY and \copy

2004-04-09 Thread Bruce Momjian
Tom Lane wrote: > Bruce Momjian <[EMAIL PROTECTED]> writes: > > Tom Lane wrote: > >> What is "command output" and how does that differ from stdout? > > > In this case, stdout is going to psql's stdout, not to the command > > stdout. > > Hm, I didn't realize it worked like that. So "command outpu

Re: [HACKERS] stdin/stdout mismatch for COPY and \copy

2004-04-09 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> What is "command output" and how does that differ from stdout? > In this case, stdout is going to psql's stdout, not to the command > stdout. Hm, I didn't realize it worked like that. So "command output" means "where SELECT output wo

Re: [HACKERS] stdin/stdout mismatch for COPY and \copy

2004-04-09 Thread Bruce Momjian
Tom Lane wrote: > Bruce Momjian <[EMAIL PROTECTED]> writes: > > I think the biggest problem is that stdin/stdout in COPY is different > > from \copy. I propose we make stdin/stdout consistent for COPY and > > \copy, where stdin always reads from command input, and stdout always > > writes to comma

Re: [HACKERS] stdin/stdout mismatch for COPY and \copy

2004-04-09 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > I think the biggest problem is that stdin/stdout in COPY is different > from \copy. I propose we make stdin/stdout consistent for COPY and > \copy, where stdin always reads from command input, and stdout always > writes to command output. This does brea

[HACKERS] stdin/stdout mismatch for COPY and \copy

2004-04-09 Thread Bruce Momjian
Tom Lane wrote: > Bruce Momjian <[EMAIL PROTECTED]> writes: > > Tom Lane wrote: > >> No it doesn't. EOF will do fine. The source program doesn't > >> necessarily have to know anything about COPY, as long as its output is > >> in a format COPY can cope with (eg, tab-delimited). > > > The current