pgsql/src backend/commands/command.c backend/e ...

From: Jan Wieck <wieck(at)hub(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql/src backend/commands/command.c backend/e ...
Date: 2001-05-21 14:22:19
Message-ID: 200105211422.f4LEMJI09197@hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

CVSROOT: /home/projects/pgsql/cvsroot
Module name: pgsql
Changes by: wieck(at)hub(dot)org 01/05/21 10:22:19

Modified files:
src/backend/commands: command.c
src/backend/executor: spi.c
src/include/catalog: catversion.h pg_type.h
src/include/executor: spi.h spi_priv.h
src/include/utils: portal.h
src/pl/plpgsql/src: gram.y pl_comp.c pl_exec.c pl_funcs.c
plpgsql.h scan.l

Log message:
Enhancement of SPI to get access to portals

- New functions to create a portal using a prepared/saved
SPI plan or lookup an existing portal by name.
- Functions to fetch/move from/in portals. Results are placed
in the usual SPI_processed and SPI_tuptable, so the entire
set of utility functions can be used to gain attribute access.
- Prepared/saved SPI plans now use their own memory context
and SPI_freeplan(plan) can remove them.
- Tuple result sets (SPI_tuptable) now uses it's own memory
context and can be free'd by SPI_freetuptable(tuptab).

Enhancement of PL/pgSQL

- Uses generic named portals internally in FOR ... SELECT
loops to avoid running out of memory on huge result sets.
- Support for CURSOR and REFCURSOR syntax using the new SPI
functionality. Cursors used internally only need no explicit
transaction block. Refcursor variables can be used inside
of explicit transaction block to pass cursors between main
application and functions.

Jan

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut - PostgreSQL 2001-05-21 16:54:46 pgsql/ oc/src/sgml/datatype.sgml rc/backend/ut ...
Previous Message Vince Vielhaber 2001-05-21 13:53:00 [WEBMASTER] 'www/html howtomirror.html'