Re: Memory usage / concept - Mailing list pgsql-general

From Nigel J. Andrews
Subject Re: Memory usage / concept
Date
Msg-id Pine.LNX.4.21.0208051753540.3235-100000@ponder.fairway2k.co.uk
Whole thread Raw
In response to Re: Memory usage / concept  (Jakub Ouhrabka <jouh8664@ss1000.ms.mff.cuni.cz>)
List pgsql-general
On Mon, 5 Aug 2002, Jakub Ouhrabka wrote:

>
> > >i think it's your client (psql) what's actually crashing. it's attempting
> >
> > Yes it is. But without using a cursor (and even if this kind of query isn't
> > recommended) is there any solution to limit the use of the memory by PG itself
> > (as for Oracle) ?
>

What sort of error does Oracle report when you try to retrieve several GB of
data? Is this in it's 'command line' interface?

Basically what I'm asking about is what the Client/Server protocol does.
Presuming that all clients don't crash but abort the query then presumably the
client library is doing the abort when it fails to allocate a chunk of storage
during the recieve. I must admit to not knowing what libpq does but it
certainly doesn't trap this situation and return an error to the caller. Why
not? Other than the caller should be implementing sufficient intelligence in a
real application to avoid the situation.


--
Nigel J. Andrews
Director

---
Logictree Systems Limited
Computer Consultants


pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: O'Reilly Open Source Convention Report
Next
From: Richard Huxton
Date:
Subject: Re: psql client