Re: where does postgres keep the query result until it is returned?

From: Willy-Bas Loos <willybas(at)gmail(dot)com>
To: Merlin Moncure <mmoncure(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Sam Mason <sam(at)samason(dot)me(dot)uk>, pgsql-general(at)postgresql(dot)org, sss(at)clearsenses(dot)com
Subject: Re: where does postgres keep the query result until it is returned?
Date: 2010-09-30 17:29:33
Message-ID: AANLkTinaexYwScB0bsO9Nn0Sy3=rtNhW73YxHMBUFwoM@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

One thing that i think works is to create a table from your results.
That is, if your result is not one big chunk in one row that won't fit
in memory, but lots of rows.

like this:
create table foo as
select <humongous query>

If you use "screen" (on linux) you can log out while your humongous
query runs on the server.

Cheers,

WBL
--
"Patriotism is the conviction that your country is superior to all
others because you were born in it." -- George Bernard Shaw

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Norman 2010-09-30 18:03:04 custom analyze function
Previous Message Joshua D. Drake 2010-09-30 17:22:38 PgWest 2010 talk descriptions are up