Re: SPI memory overrun details

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Katsaros Kwn/nos" <ntinos(at)aueb(dot)gr>
Cc: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: SPI memory overrun details
Date: 2004-11-25 16:14:08
Message-ID: 29639.1101399248@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Katsaros Kwn/nos" <ntinos(at)aueb(dot)gr> writes:
> I read in the documentation of SPI functions that an SPI_cursor is used
> to avoid memory overrun in cases where a query returns many rows. I'd
> like to learn more about this. Is their any place that I could find more
> detailed information (e.g. max size of results, threshold - available
> memory etc.)?

You could look at plpgsql's use of SPI cursors for an example.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2004-11-25 16:32:18 Re: VACUUM ANALYZE question - PostgreSQL performance tests
Previous Message Joshua D. Drake 2004-11-25 16:09:09 Happy Thanksgiving