]> begriffs open source - ai-pg/blob - full-docs/man3/SPI_fname.3
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / man3 / SPI_fname.3
1 '\" t
2 .\"     Title: SPI_fname
3 .\"    Author: The PostgreSQL Global Development Group
4 .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
5 .\"      Date: 2025
6 .\"    Manual: PostgreSQL 18.0 Documentation
7 .\"    Source: PostgreSQL 18.0
8 .\"  Language: English
9 .\"
10 .TH "SPI_FNAME" "3" "2025" "PostgreSQL 18.0" "PostgreSQL 18.0 Documentation"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18 .ie \n(.g .ds Aq \(aq
19 .el       .ds Aq '
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
24 .nh
25 .\" disable justification (adjust text to left margin only)
26 .ad l
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
30 .SH "NAME"
31 SPI_fname \- determine the column name for the specified column number
32 .SH "SYNOPSIS"
33 .sp
34 .nf
35 char * SPI_fname(TupleDesc \fIrowdesc\fR, int \fIcolnumber\fR)
36 .fi
37 .SH "DESCRIPTION"
38 .PP
39 \fBSPI_fname\fR
40 returns a copy of the column name of the specified column\&. (You can use
41 \fBpfree\fR
42 to release the copy of the name when you don\*(Aqt need it anymore\&.)
43 .SH "ARGUMENTS"
44 .PP
45 TupleDesc \fIrowdesc\fR
46 .RS 4
47 input row description
48 .RE
49 .PP
50 int \fIcolnumber\fR
51 .RS 4
52 column number (count starts at 1)
53 .RE
54 .SH "RETURN VALUE"
55 .PP
56 The column name;
57 NULL
58 if
59 \fIcolnumber\fR
60 is out of range\&.
61 \fISPI_result\fR
62 set to
63 SPI_ERROR_NOATTRIBUTE
64 on error\&.