Re: how to get the connected session pointer ( Archive * AH)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: how to get the connected session pointer ( Archive * AH)
Дата
Msg-id 22385.1382460589@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: how to get the connected session pointer ( Archive * AH)  (AI Rumman <rummandba@gmail.com>)
Список pgsql-general
AI Rumman <rummandba@gmail.com> writes:
> I have a libpq C interface code which takes user/password to connect to the
> db. Now, I want to call it from a pgsql function where user will not need
> to put any user name or password, rather it will use the current session ID.
> How can I do it? Any idea, please.

It sounds to me like you're trying to reinvent the foreign-data-wrapper
user identity functionality, and not very well at that.

            regards, tom lane


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

Предыдущее
От: AI Rumman
Дата:
Сообщение: Re: how to get the connected session pointer ( Archive * AH)
Следующее
От: Rémi Cura
Дата:
Сообщение: Error with "return query" ( "return next" working ) with custom type