Re: BUG #4698: psql.exe is exits reporting "out of memory" error

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Yuri Cherio" <yuri(at)aergo(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4698: psql.exe is exits reporting "out of memory" error
Date: 2009-03-10 19:31:04
Message-ID: 2331.1236713464@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Yuri Cherio" <yuri(at)aergo(dot)com> writes:
> psql -f "filename.sql" > "out_file_name"

> One would expect that standard output should not be accumulated until it
> blows up but instead would behave as a stream.

This is not the case, for various reasons that I don't feel like
debating right now. You might try using \copy instead of a SELECT,
though.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2009-03-10 19:43:37 Re: BUG #4699: pg_restore hangs with incorrect file format
Previous Message Scott Reed 2009-03-10 19:23:19 BUG #4699: pg_restore hangs with incorrect file format