3
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
4
<title>SPI_getnspname</title>
5
<link rel="stylesheet" href="stylesheet.css" type="text/css">
6
<link rev="made" href="pgsql-docs@postgresql.org">
7
<meta name="generator" content="DocBook XSL Stylesheets V1.70.0">
8
<link rel="start" href="index.html" title="PostgreSQL 8.1.4 Documentation">
9
<link rel="up" href="spi-interface-support.html" title="40.2.�Interface Support Functions">
10
<link rel="prev" href="spi-spi-getrelname.html" title="SPI_getrelname">
11
<link rel="next" href="spi-memory.html" title="40.3.�Memory Management">
12
<link rel="copyright" href="ln-legalnotice.html" title="Legal Notice">
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en">
15
<a name="spi-spi-getnspname"></a><div class="titlepage"></div>
16
<div class="refnamediv">
18
<p>SPI_getnspname — return the namespace of the specified relation</p>
20
<a name="id738480"></a><div class="refsynopsisdiv">
22
<pre class="synopsis">char * SPI_getnspname(Relation <em class="parameter"><code>rel</code></em>)</pre>
24
<div class="refsect1" lang="en">
25
<a name="id738499"></a><h2>Description</h2>
26
<p> <code class="function">SPI_getnspname</code> returns a copy of the name of
27
the namespace that the specified <code class="structname">Relation</code>
28
belongs to. This is equivalent to the relation's schema. You should
29
<code class="function">pfree</code> the return value of this function when
30
you are finished with it.
33
<div class="refsect1" lang="en">
34
<a name="id738526"></a><h2>Arguments</h2>
35
<div class="variablelist"><dl>
36
<dt><span class="term"><code class="literal">Relation <em class="parameter"><code>rel</code></em></code></span></dt>
37
<dd><p> input relation
41
<div class="refsect1" lang="en">
42
<a name="id738548"></a><h2>Return Value</h2>
43
<p> The name of the specified relation's namespace.