pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-general@lists.postgresql.org
Subject: Re: Search path
Date: Fri, 25 Oct 2019 08:13:03 +0200
Message-ID: <b8356568-a205-82dc-fd38-d617b31533ca@gmx.net> (raw)
In-Reply-To: <20191024164137.GA29487@panix.com>
References: <20191024164137.GA29487@panix.com>

stan schrieb am 24.10.2019 um 18:41:
> I just was educated on the security issues of search path. As a result
> I am going to define a schema for the project we are working on.
> I set this in  postgresql.conf
> 
> search_path = 'ica , "$user", public'
> 
> Here is the question. Will this path be in effect for users connecting from
> MS Access clients? The name of this file makes me think that it only
> controls instances of psql, but I need this to be effective for all
> connections to the database.

As Adrian already pointed out, yes this will work for any connection including one from MS Access.

Note that you can also set this on a per user level, if you don't want all users having the same setting.

   ALTER USER ms_access_user SET search_path = ica , "$user", public;




 






view thread (3+ messages)

Message-ID: <b8356568-a205-82dc-fd38-d617b31533ca@gmx.net>
Permalink:  ../b8356568-a205-82dc-fd38-d617b31533ca@gmx.net/
Also on:    postgresql.org/message-id/b8356568-a205-82dc-fd38-d617b31533ca@gmx.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: spam_eater@gmx.net
  Subject: Re: Search path
  In-Reply-To: <b8356568-a205-82dc-fd38-d617b31533ca@gmx.net>
  References: <20191024164137.GA29487@panix.com> <b8356568-a205-82dc-fd38-d617b31533ca@gmx.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox