diff options
author | Neil Conway <neilc@samurai.com> | 2005-03-29 02:53:53 +0000 |
---|---|---|
committer | Neil Conway <neilc@samurai.com> | 2005-03-29 02:53:53 +0000 |
commit | 4f6f5db47484c6550cfe792e80fc2c824154995e (patch) | |
tree | 8446f108ab564478a1b5a5e3a9e67f923b377730 /doc/src | |
parent | 70c9763d4815ac847f0f7694f43eb6a59a236868 (diff) | |
download | postgresql-4f6f5db47484c6550cfe792e80fc2c824154995e.tar.gz postgresql-4f6f5db47484c6550cfe792e80fc2c824154995e.zip |
Add SPI_getnspname(), including documentation.
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/spi.sgml | 56 |
1 files changed, 55 insertions, 1 deletions
diff --git a/doc/src/sgml/spi.sgml b/doc/src/sgml/spi.sgml index 86949a9a439..52e41e1b890 100644 --- a/doc/src/sgml/spi.sgml +++ b/doc/src/sgml/spi.sgml @@ -1,5 +1,5 @@ <!-- -$PostgreSQL: pgsql/doc/src/sgml/spi.sgml,v 1.39 2005/01/22 22:56:36 momjian Exp $ +$PostgreSQL: pgsql/doc/src/sgml/spi.sgml,v 1.40 2005/03/29 02:53:53 neilc Exp $ --> <chapter id="spi"> @@ -2153,6 +2153,60 @@ char * SPI_getrelname(Relation <parameter>rel</parameter>) </refsect1> </refentry> +<refentry id="spi-spi-getnspname"> + <refmeta> + <refentrytitle>SPI_getnspname</refentrytitle> + </refmeta> + + <refnamediv> + <refname>SPI_getnspname</refname> + <refpurpose>return the namespace of the specified relation</refpurpose> + </refnamediv> + + <indexterm><primary>SPI_getnspname</primary></indexterm> + + <refsynopsisdiv> +<synopsis> +char * SPI_getnspname(Relation <parameter>rel</parameter>) +</synopsis> + </refsynopsisdiv> + + <refsect1> + <title>Description</title> + + <para> + <function>SPI_getnspname</function> returns a copy of the name of + the namespace that the specified <structname>Relation</structname> + belongs to. This is equivalent to the relation's schema. You should + <function>pfree</function> the return value of this function when + you are finished with it. + </para> + </refsect1> + + <refsect1> + <title>Arguments</title> + + <variablelist> + <varlistentry> + <term><literal>Relation <parameter>rel</parameter></literal></term> + <listitem> + <para> + input relation + </para> + </listitem> + </varlistentry> + </variablelist> + </refsect1> + + <refsect1> + <title>Return Value</title> + + <para> + The name of the specified relation's namespace. + </para> + </refsect1> +</refentry> + </sect1> <sect1 id="spi-memory"> |