1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
8
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
10
HREF="mailto:pgsql-docs@postgresql.org"><LINK
12
TITLE="PostgreSQL 9.1beta1 Documentation"
13
HREF="index.html"><LINK
15
TITLE="Interface Support Functions"
16
HREF="spi-interface-support.html"><LINK
19
HREF="spi-spi-fname.html"><LINK
22
HREF="spi-spi-getvalue.html"><LINK
25
HREF="stylesheet.css"><META
26
HTTP-EQUIV="Content-Type"
27
CONTENT="text/html; charset=ISO-8859-1"><META
29
CONTENT="2011-04-27T21:20:33"></HEAD
35
SUMMARY="Header navigation table"
47
>PostgreSQL 9.1beta1 Documentation</A
57
HREF="spi-spi-fname.html"
67
HREF="spi-spi-fname.html"
81
HREF="spi-spi-getvalue.html"
90
HREF="spi-spi-getvalue.html"
101
NAME="SPI-SPI-FNUMBER"
111
>SPI_fnumber -- determine the column number for the specified column name</DIV
113
CLASS="REFSYNOPSISDIV"
121
>int SPI_fnumber(TupleDesc <TT
140
> returns the column number for the
141
column with the specified name.
147
> refers to a system column (e.g.,
151
>) then the appropriate negative column number will
152
be returned. The caller should be careful to test the return value
153
for exact equality to <TT
155
>SPI_ERROR_NOATTRIBUTE</TT
157
detect an error; testing the result for less than or equal to 0 is
158
not correct unless system columns should be rejected.
183
> input row description
210
> Column number (count starts at 1), or
213
>SPI_ERROR_NOATTRIBUTE</TT
214
> if the named column was not
223
SUMMARY="Footer navigation table"
234
HREF="spi-spi-fname.html"
252
HREF="spi-spi-getvalue.html"
268
HREF="spi-interface-support.html"
b'\\ No newline at end of file'