Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
d245b6bd
Commit
d245b6bd
authored
Mar 17, 2004
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document SPI_push() and SPI_pop().
parent
c1352052
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
69 additions
and
5 deletions
+69
-5
doc/src/sgml/spi.sgml
doc/src/sgml/spi.sgml
+63
-1
src/backend/executor/spi.c
src/backend/executor/spi.c
+3
-1
src/include/executor/spi.h
src/include/executor/spi.h
+3
-3
No files found.
doc/src/sgml/spi.sgml
View file @
d245b6bd
<!--
$PostgreSQL: pgsql/doc/src/sgml/spi.sgml,v 1.3
2 2004/03/05 01:00:45
momjian Exp $
$PostgreSQL: pgsql/doc/src/sgml/spi.sgml,v 1.3
3 2004/03/17 01:05:10
momjian Exp $
-->
<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">
<refmeta>
<refentrytitle>SPI_exec</refentrytitle>
...
...
src/backend/executor/spi.c
View file @
d245b6bd
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/executor/spi.c,v 1.11
0 2004/03/05 00:47:01
momjian Exp $
* $PostgreSQL: pgsql/src/backend/executor/spi.c,v 1.11
1 2004/03/17 01:05:10
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -201,12 +201,14 @@ AtEOXact_SPI(bool isCommit)
SPI_tuptable
=
NULL
;
}
/* Pushes SPI stack to allow recursive SPI calls */
void
SPI_push
(
void
)
{
_SPI_curid
++
;
}
/* Pops SPI stack to allow recursive SPI calls */
void
SPI_pop
(
void
)
{
...
...
src/include/executor/spi.h
View file @
d245b6bd
...
...
@@ -2,7 +2,7 @@
*
* spi.h
*
* $PostgreSQL: pgsql/src/include/executor/spi.h,v 1.4
2 2004/03/05 00:47:01
momjian Exp $
* $PostgreSQL: pgsql/src/include/executor/spi.h,v 1.4
3 2004/03/17 01:05:10
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment