SPI_getnspname

Название

SPI_getnspname -- возвращает пространство имён указанного отношения

Синтаксис

char * SPI_getnspname(Relation rel)

Описание

SPI_getnspname возвращает копию имени пространства имён, к которому принадлежит указанное отношение (Relation). Пространство имён по-другому называется схемой отношения. Когда значение, возвращённое этой функцией, будет не нужно, освободите его с помощью pfree.

Аргументы

Relation rel

целевое отношение

Возвращаемое значение

Имя пространства имён указанного отношения.

SPI_getnspname

Name

SPI_getnspname -- return the namespace of the specified relation

Synopsis

char * SPI_getnspname(Relation rel)

Description

SPI_getnspname returns a copy of the name of the namespace that the specified Relation belongs to. This is equivalent to the relation's schema. You should pfree the return value of this function when you are finished with it.

Arguments

Relation rel

input relation

Return Value

The name of the specified relation's namespace.

FAQ