]> granicus.if.org Git - postgresql/commit
Expose more cursor-related functionality in SPI: specifically, allow
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 16 Apr 2007 01:14:58 +0000 (01:14 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 16 Apr 2007 01:14:58 +0000 (01:14 +0000)
commit66888f7424f7d6c7cea2c26e181054d1455d4e7a
treed7224be67b7a912f5d65315afb1c121622373a0a
parentfa92d21a486de868b21bbc03944649af3e1ac90f
Expose more cursor-related functionality in SPI: specifically, allow
access to the planner's cursor-related planning options, and provide new
FETCH/MOVE routines that allow access to the full power of those commands.
Small refactoring of planner(), pg_plan_query(), and pg_plan_queries()
APIs to make it convenient to pass the planning options down from SPI.

This is the core-code portion of Pavel Stehule's patch for scrollable
cursor support in plpgsql; I'll review and apply the plpgsql changes
separately.
15 files changed:
doc/src/sgml/spi.sgml
src/backend/commands/copy.c
src/backend/commands/explain.c
src/backend/commands/portalcmds.c
src/backend/commands/prepare.c
src/backend/executor/functions.c
src/backend/executor/spi.c
src/backend/optimizer/plan/planner.c
src/backend/parser/gram.y
src/backend/tcop/postgres.c
src/backend/utils/cache/plancache.c
src/include/executor/spi.h
src/include/nodes/parsenodes.h
src/include/optimizer/planner.h
src/include/tcop/tcopprot.h