4 SPI_register_relation — make an ephemeral named relation available by
9 int SPI_register_relation(EphemeralNamedRelation enr)
13 SPI_register_relation makes an ephemeral named relation, with
14 associated information, available to queries planned and executed
15 through the current SPI connection.
19 EphemeralNamedRelation enr
20 the ephemeral named relation registry entry
24 If the execution of the command was successful then the following
25 (nonnegative) value will be returned:
28 if the relation has been successfully registered by name
30 On error, one of the following negative values is returned:
33 if enr is NULL or its name field is NULL
36 if called from an unconnected C function
38 SPI_ERROR_REL_DUPLICATE
39 if the name specified in the name field of enr is already
40 registered for this connection