Обсуждение: pgsql: Add SPI-level support for executing SQL commands with

Поиск
Список
Период
Сортировка

pgsql: Add SPI-level support for executing SQL commands with

От
tgl@postgresql.org (Tom Lane)
Дата:
Log Message:
-----------
Add SPI-level support for executing SQL commands with one-time-use plans,
that is commands that have out-of-line parameters but the plan is prepared
assuming that the parameter values are constants.  This is needed for the
plpgsql EXECUTE USING patch, but will probably have use elsewhere.

This commit includes the SPI functions and documentation, but no callers
nor regression tests.  The upcoming EXECUTE USING patch will provide
regression-test coverage.  I thought committing this separately made
sense since it's logically a distinct feature.

Modified Files:
--------------
    pgsql/doc/src/sgml:
        spi.sgml (r1.61 -> r1.62)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/doc/src/sgml/spi.sgml?r1=1.61&r2=1.62)
    pgsql/src/backend/executor:
        spi.c (r1.191 -> r1.192)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/executor/spi.c?r1=1.191&r2=1.192)
    pgsql/src/include/executor:
        spi.h (r1.65 -> r1.66)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/executor/spi.h?r1=1.65&r2=1.66)