mirror of
https://github.com/postgres/postgres.git
synced 2025-04-22 23:02:54 +03:00
Document SPI_push() and SPI_pop().
This commit is contained in:
parent
c1352052ef
commit
d245b6bd9f
@ -1,5 +1,5 @@
|
|||||||
<!--
|
<!--
|
||||||
$PostgreSQL: pgsql/doc/src/sgml/spi.sgml,v 1.32 2004/03/05 01:00:45 momjian Exp $
|
$PostgreSQL: pgsql/doc/src/sgml/spi.sgml,v 1.33 2004/03/17 01:05:10 momjian Exp $
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<chapter id="spi">
|
<chapter id="spi">
|
||||||
@ -199,6 +199,68 @@ int SPI_finish(void)
|
|||||||
|
|
||||||
<!-- *********************************************** -->
|
<!-- *********************************************** -->
|
||||||
|
|
||||||
|
<refentry id="spi-spi-push">
|
||||||
|
<refmeta>
|
||||||
|
<refentrytitle>SPI_push</refentrytitle>
|
||||||
|
</refmeta>
|
||||||
|
|
||||||
|
<refnamediv>
|
||||||
|
<refname>SPI_push</refname>
|
||||||
|
<refpurpose>pushes SPI stack to allow recursive SPI calls</refpurpose>
|
||||||
|
</refnamediv>
|
||||||
|
|
||||||
|
<indexterm><primary>SPI_push</primary></indexterm>
|
||||||
|
|
||||||
|
<refsynopsisdiv>
|
||||||
|
<synopsis>
|
||||||
|
void SPI_push(void)
|
||||||
|
</synopsis>
|
||||||
|
</refsynopsisdiv>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>Description</title>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
<function>SPI_push</function> pushes a new environment on to the
|
||||||
|
SPI call stack, allowing recursive calls to use a new environment.
|
||||||
|
</para>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
</refentry>
|
||||||
|
|
||||||
|
<!-- *********************************************** -->
|
||||||
|
|
||||||
|
<refentry id="spi-spi-pop">
|
||||||
|
<refmeta>
|
||||||
|
<refentrytitle>SPI_pop</refentrytitle>
|
||||||
|
</refmeta>
|
||||||
|
|
||||||
|
<refnamediv>
|
||||||
|
<refname>SPI_pop</refname>
|
||||||
|
<refpurpose>pops SPI stack to allow recursive SPI calls</refpurpose>
|
||||||
|
</refnamediv>
|
||||||
|
|
||||||
|
<indexterm><primary>SPI_pop</primary></indexterm>
|
||||||
|
|
||||||
|
<refsynopsisdiv>
|
||||||
|
<synopsis>
|
||||||
|
void SPI_pop(void)
|
||||||
|
</synopsis>
|
||||||
|
</refsynopsisdiv>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>Description</title>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
<function>SPI_pop</function> pops the previous environment from the
|
||||||
|
SPI call stack. For use when returning from recursive SPI calls.
|
||||||
|
</para>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
</refentry>
|
||||||
|
|
||||||
|
<!-- *********************************************** -->
|
||||||
|
|
||||||
<refentry id="spi-spi-exec">
|
<refentry id="spi-spi-exec">
|
||||||
<refmeta>
|
<refmeta>
|
||||||
<refentrytitle>SPI_exec</refentrytitle>
|
<refentrytitle>SPI_exec</refentrytitle>
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/executor/spi.c,v 1.110 2004/03/05 00:47:01 momjian Exp $
|
* $PostgreSQL: pgsql/src/backend/executor/spi.c,v 1.111 2004/03/17 01:05:10 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -201,12 +201,14 @@ AtEOXact_SPI(bool isCommit)
|
|||||||
SPI_tuptable = NULL;
|
SPI_tuptable = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Pushes SPI stack to allow recursive SPI calls */
|
||||||
void
|
void
|
||||||
SPI_push(void)
|
SPI_push(void)
|
||||||
{
|
{
|
||||||
_SPI_curid++;
|
_SPI_curid++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Pops SPI stack to allow recursive SPI calls */
|
||||||
void
|
void
|
||||||
SPI_pop(void)
|
SPI_pop(void)
|
||||||
{
|
{
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
*
|
*
|
||||||
* spi.h
|
* spi.h
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/src/include/executor/spi.h,v 1.42 2004/03/05 00:47:01 momjian Exp $
|
* $PostgreSQL: pgsql/src/include/executor/spi.h,v 1.43 2004/03/17 01:05:10 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -81,8 +81,8 @@ extern int SPI_connect(void);
|
|||||||
extern int SPI_finish(void);
|
extern int SPI_finish(void);
|
||||||
extern void SPI_push(void);
|
extern void SPI_push(void);
|
||||||
extern void SPI_pop(void);
|
extern void SPI_pop(void);
|
||||||
extern int SPI_exec(const char *src, int tcount);
|
extern int SPI_exec(const char *src, int tcount);
|
||||||
extern int SPI_execp(void *plan, Datum *values, const char *Nulls,
|
extern int SPI_execp(void *plan, Datum *values, const char *Nulls,
|
||||||
int tcount);
|
int tcount);
|
||||||
extern int SPI_execp_current(void *plan, Datum *values, const char *Nulls,
|
extern int SPI_execp_current(void *plan, Datum *values, const char *Nulls,
|
||||||
bool useCurrentSnapshot, int tcount);
|
bool useCurrentSnapshot, int tcount);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user