Re: where does postgres keep the query result until it is returned? - Mailing list pgsql-general

From Willy-Bas Loos
Subject Re: where does postgres keep the query result until it is returned?
Date
Msg-id AANLkTinFO5EbBwL5o2XXmHjxx+_Tcf+89AxptDHE5SFL@mail.gmail.com
Whole thread Raw
In response to Re: where does postgres keep the query result until it is returned?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: where does postgres keep the query result until it is returned?  (Sam Mason <sam@samason.me.uk>)
List pgsql-general
> If the question was about the final query result sent to the client:
yes

> we don't spill that to disk, nor "hold" it anywhere.  The backend
> sends it to the client on-the-fly as each row is generated.
thanks, i didn't know that.
I asked because i have a function that produces a result in xml.
that is one row, one value even, but it grows pretty large.
how is that handled?

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

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: where does postgres keep the query result until it is returned?
Next
From: julia.jacobson@arcor.de
Date:
Subject: SELF LEFT OUTER JOIN = SELF JOIN including NULL values