From: | James Herbers <james(at)herbers(dot)ca> |
---|---|
To: | Lee Wu <Lwu(at)mxlogic(dot)com> |
Cc: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: select * and save into a text file failed |
Date: | 2005-06-10 15:39:43 |
Message-ID: | 42A9B43F.3000108@herbers.ca |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
From a client machine try the program Aqua Data Studio
(http://aquafold.com/) it has a nice export feature to export to text files.
James Herbers
Lee Wu wrote:
> Hi,
>
> When I try to save a query result into a text file from “select * from
> a_table”, once I got:
>
> out of memory for query result
>
> under psql
>
> Once got killed:
>
> My_db=# select * from a_table;
>
> Killed
>
> bash-2.05b$
>
> And once it caused PG crashed.
>
> My PG version is:
>
> select version();
>
> version
>
> ----------------------------------------------------------------------------------------------------------
>
> PostgreSQL 8.0.3 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.2.3
> 20030502 (Red Hat Linux 3.2.3-49)
>
> (1 row)
>
> The table has 6287585 rows, and takes 2805000 bytes.
>
> From the PG log, I can only find:
>
> could not send data to client: Connection reset by peer
>
> could not send data to client: Broken pipe
>
> unexpected EOF on client connection
>
> How can I save PG data into text file without using pg_dump?
>
> Thanks,
>
> PS: I know pg_dump, but it is not my option.
>
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2005-06-10 16:03:19 | Re: PostgreSQL default data location |
Previous Message | Bricklen Anderson | 2005-06-10 15:35:29 | Re: select * and save into a text file failed |