Re: search_path not reloaded via unix socket connections

From: Kong Man <kong_mansatiansin(at)hotmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "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 16:49:41
Message-ID: DUB127-W39014E7FF07B14FD7A7FA58B590@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

We just found out that the problem was that our own ~/.psqlrc contained the SET statement, overriding the global setting.

From: kong_mansatiansin(at)hotmail(dot)com
To: tgl(at)sss(dot)pgh(dot)pa(dot)us
CC: pgsql-general(at)postgresql(dot)org
Subject: RE: [GENERAL] search_path not reloaded via unix socket connections
Date: Fri, 18 Sep 2015 08:19:30 -0700

Tom,I have made sure that the per-user and per-database settings are reset. The old search_path setting still persists whenever I reconnect via local connections no matter what user I log in as.

> From: tgl(at)sss(dot)pgh(dot)pa(dot)us
> To: kong_mansatiansin(at)hotmail(dot)com
> CC: pgsql-general(at)postgresql(dot)org
> Subject: Re: [GENERAL] search_path not reloaded via unix socket connections
> Date: Thu, 17 Sep 2015 22:29:04 -0400
>
> Kong Man <kong_mansatiansin(at)hotmail(dot)com> writes:
> > Can anybody explain why the search_path setting, with several config reloads, would not change via local connections? We struggled with our production settings on Postgres 9.3 today, only to realize, after a while, that the search_path change actually took effect via TCP/IP, but not unix socket, connections ever since the first reload.
>
> That's, um, pretty hard to believe. Less magical interpretations would
> involve something like a per-user or per-database setting overriding
> what's in the config file in some sessions but not others. But I really
> really doubt that TCP vs unix socket is the determining factor.
>
> regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Janes 2015-09-18 18:20:13 Re: Broken primary key after backup restore.
Previous Message Adrian Klaver 2015-09-18 16:38:42 Re: search_path not reloaded via unix socket connections