Re: select * and save into a text file failed - Mailing list pgsql-admin

From Steve Crawford
Subject Re: select * and save into a text file failed
Date
Msg-id 200506100959.37249.scrawford@pinpointresearch.com
Whole thread Raw
In response to Re: select * and save into a text file failed  ("Lee Wu" <Lwu@mxlogic.com>)
List pgsql-admin
On Friday 10 June 2005 9:33 am, Lee Wu wrote:
> Even without saving to file, it is still killed:
>...
> My_db=# select * from a_table;
> Killed
>...

The previous examples don't work for me. In psql try this:
--First set the output to a file
\o 'my_output.txt'

--Now run the query
select * from myfile;

--Quit and check your results
\q

If you have a very large table you can exhaust memory on the client
side unless you are writing the data directly to a file.

Cheers,
Steve


pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: Indexes getting corrupted.
Next
From: "Lee Wu"
Date:
Subject: Re: select * and save into a text file failed