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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: AI Rumman <rummandba(at)gmail(dot)com>
Cc: Luca Ferrari <fluca1978(at)infinito(dot)it>, pgsql-general General <pgsql-general(at)postgresql(dot)org>
Subject: Re: how to get the connected session pointer ( Archive * AH)
Date: 2013-10-22 16:49:49
Message-ID: 22385.1382460589@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

AI Rumman <rummandba(at)gmail(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Rémi Cura 2013-10-22 17:21:36 Error with "return query" ( "return next" working ) with custom type
Previous Message AI Rumman 2013-10-22 16:27:21 Re: how to get the connected session pointer ( Archive * AH)