SPI_unregister_relation
SPI_unregister_relation — удалить эфемерное именованное отношение из реестра
Синтаксис
int SPI_unregister_relation(const char * name)Описание
SPI_unregister_relation удаляет эфемерное именованное отношение из реестра для текущего подключения.
Аргументы
const char *nameимя записи отношения в реестре
Возвращаемое значение
Если команда была выполнена успешно, возвращается следующее (неотрицательное) значение:
SPI_OK_REL_UNREGISTERесли совокупность кортежей была успешно удалена из реестра
В случае ошибки возвращается одно из следующих отрицательных значений:
SPI_ERROR_ARGUMENTесли в
nameпереданNULLSPI_ERROR_UNCONNECTEDесли вызывается из неподключённой функции на C
SPI_ERROR_REL_NOT_FOUNDесли
nameне находится в реестре для текущего подключения
SPI_unregister_relation
SPI_unregister_relation — remove an ephemeral named relation from the registry
Synopsis
int SPI_unregister_relation(const char * name)
Description
SPI_unregister_relation removes an ephemeral named relation from the registry for the current connection.
Arguments
const char *namethe relation registry entry name
Return Value
If the execution of the command was successful then the following (nonnegative) value will be returned:
SPI_OK_REL_UNREGISTERif the tuplestore has been successfully removed from the registry
On error, one of the following negative values is returned:
SPI_ERROR_ARGUMENTif
nameisNULLSPI_ERROR_UNCONNECTEDif called from an unconnected C function
SPI_ERROR_REL_NOT_FOUNDif
nameis not found in the registry for the current connection