Re: search_path not reloaded via unix socket connections

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: Kong Man <kong_mansatiansin(at)hotmail(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: search_path not reloaded via unix socket connections
Date: 2015-09-18 03:31:00
Message-ID: 32111.1442547060@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"David G. Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> writes:
> As an aside the alter user/database commands do end up requiring the user
> to disconnect and reconnect. Is there a hard limitation why an
> administrator can't send some kind of signal to cause a re-read of those by
> an active session?

If we wanted to redefine their behavior, we could probably make that
happen, though it's not clear we want to. For example, if you've done
SET ROLE, should a reload of ALTER USER values pertaining to your
original role affect you?

Another interesting point is that the config file re-read behavior will
currently happen at next command receipt, even if you are inside an
aborted transaction. We cannot read the system catalogs if the current
transaction is aborted, so the timing would have to be subtly different
in any case.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Craig Ringer 2015-09-18 05:44:50 Re: BDR truncate and replication sets
Previous Message David G. Johnston 2015-09-18 03:25:04 Re: search_path not reloaded via unix socket connections