Database Oid from SPI

Поиск
Список
Период
Сортировка
От Markus Schiltknecht
Тема Database Oid from SPI
Дата
Msg-id eaaahj$1bcf$1@news.hub.org
обсуждение исходный текст
Ответы Re: Database Oid from SPI
Список pgsql-general
Hi,

how can I get the database name or OID of the current backend in a SPI
function (in plain C)? I tried including storage/proc.h and accessing
MyProc->databaseId, but that leads to a segfault :-(  (and seems like
the wrong way to do it.)

The SPI documentation didn't help.

Thank you

Markus

В списке pgsql-general по дате отправления:

Предыдущее
От: "Christian Rengstl"
Дата:
Сообщение: Shared buffers
Следующее
От: Markus Schiltknecht
Дата:
Сообщение: Re: Database Oid from SPI