pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Steve Crawford <scrawford@pinpointresearch.com>
To: Lee Wu <Lwu@mxlogic.com>
To: pgsql-admin@postgresql.org
Subject: Re: select * and save into a text file failed
Date: Fri, 10 Jun 2005 09:59:36 -0700
Message-ID: <200506100959.37249.scrawford@pinpointresearch.com> (raw)
In-Reply-To: <E1F0E4D89D8FA44789DFC065C8E755281A360D@mxlhq-exch01.corp.mxlogic.com>
References: <E1F0E4D89D8FA44789DFC065C8E755281A360D@mxlhq-exch01.corp.mxlogic.com>

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




view thread (11+ messages)  latest in thread

Message-ID: <200506100959.37249.scrawford@pinpointresearch.com>
Permalink:  ../200506100959.37249.scrawford@pinpointresearch.com/
Also on:    postgresql.org/message-id/200506100959.37249.scrawford@pinpointresearch.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: scrawford@pinpointresearch.com, Lwu@mxlogic.com
  Subject: Re: select * and save into a text file failed
  In-Reply-To: <200506100959.37249.scrawford@pinpointresearch.com>
  References: <E1F0E4D89D8FA44789DFC065C8E755281A360D@mxlhq-exch01.corp.mxlogic.com> <200506100959.37249.scrawford@pinpointresearch.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox