This is a discussion on SPI_getnspname within the Pgsql Patches forums, part of the PostgreSQL category; --> I noticed there is an SPI API function to get the name of a specified Relation, but no similar ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I noticed there is an SPI API function to get the name of a specified Relation, but no similar function to get the Relation's namespace. Attached is a patch that implements SPI_getnspname(). I wasn't sure if I should refer to the relation's "schema" or its "namespace"; my feeling was that SPI is sufficiently close to the internals that we should use the internal term, which is namespace. Barring any objections, I'll apply this later today. -Neil ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq |
| ||||
| Neil Conway wrote: > I noticed there is an SPI API function to get the name of a specified > Relation, but no similar function to get the Relation's namespace. > Attached is a patch that implements SPI_getnspname(). Applied. -Neil ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq |