Re: qestion

From: ivan <ivan(at)psycho(dot)pl>
To: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: qestion
Date: 2003-05-15 18:11:41
Message-ID: Pine.LNX.4.44.0305151957130.5461-100000@rex.anfa.pl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Thu, 15 May 2003, Stephan Szabo wrote:

>
> On Wed, 14 May 2003, ivan wrote:
>
> > i connect to my postgres only by socket tcp/ip , and i have to know what
> > client is connected to postgres in plpgsql function. I have many useres
> > in pg_hba.conf which can connect to server from all local network.
> > Then i need know from which client is connection. Is same way to check it
> > ? or rewrite postmaster ?
>
> Do you need the ip address or only what user is connected? The latter can
> be got at with CURRENT_USER or USER.

Yes i know about CURRENTUSER , but i need ip address to intentify
clients.
>
> > ... oh , is possible to change pg_hba.conf in plpgsql function, ie, when i
> > create new user (throught plpgsql func.) i need to add ip address, which
> > will be used by this new user.
>
> Probably not. You'd probably have to write a function in something else
> and call it from the plpgsql function. However, there's still an issue of
> how to handle rollbacks since you can't easily roll back the changes. It
> might be better to have something that's connected and LISTENing and then
> do a NOTIFY when you add users and have the outside thing figure out what
> entries belong in pg_hba.conf.
>

but can i change pg_hba.conf with result , without restarting ?

In response to

  • Re: qestion at 2003-05-15 17:36:04 from Stephan Szabo

Responses

  • Re: qestion at 2003-05-15 18:20:32 from Stephan Szabo

Browse pgsql-admin by date

  From Date Subject
Next Message Stephan Szabo 2003-05-15 18:20:32 Re: qestion
Previous Message Stephan Szabo 2003-05-15 17:36:04 Re: qestion