1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
5 >SPI_modifytuple</TITLE
8 CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
10 HREF="mailto:pgsql-docs@postgresql.org"><LINK
12 TITLE="PostgreSQL 7.4.1 Documentation"
13 HREF="index.html"><LINK
15 TITLE="Memory Management"
16 HREF="spi-memory.html"><LINK
18 TITLE="SPI_copytupleintoslot"
19 HREF="spi-spi-copytupleintoslot.html"><LINK
22 HREF="spi-spi-freetuple.html"><LINK
25 HREF="stylesheet.css"><META
27 CONTENT="2003-12-22T03:48:47"></HEAD
33 SUMMARY="Header navigation table"
43 >PostgreSQL 7.4.1 Documentation</TH
51 HREF="spi-spi-copytupleintoslot.html"
60 HREF="spi-spi-copytupleintoslot.html"
73 HREF="spi-spi-freetuple.html"
81 HREF="spi-spi-freetuple.html"
92 NAME="SPI-SPI-MODIFYTUPLE"
102 >SPI_modifytuple -- create a row by replacing selected fields of a given row</DIV
107 CLASS="REFSYNOPSISDIV"
115 >HeapTuple SPI_modifytuple(Relation <VAR
145 >SPI_modifytuple</CODE
146 > creates a new row by
147 substituting new values for selected columns, copying the original
148 row's columns at other positions. The input row is not modified.
173 > Used only as the source of the row descriptor for the row.
174 (Passing a relation rather than a row descriptor is a
201 > number of column numbers in the array
218 > array of the numbers of the columns that are to be changed
232 > new values for the specified columns
245 > which new values are null, if any (see <CODE
262 > new row with modifications, allocated in the upper executor
288 >SPI_ERROR_ARGUMENT</TT
309 is less than or equal to 0, or if <VAR
328 >SPI_ERROR_NOATTRIBUTE</TT
335 > contains an invalid column number (less
336 than or equal to 0 or greater than the number of column in
353 SUMMARY="Footer navigation table"
364 HREF="spi-spi-copytupleintoslot.html"
382 HREF="spi-spi-freetuple.html"
392 >SPI_copytupleintoslot</TD
398 HREF="spi-memory.html"