pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Search path
3+ messages / 3 participants
[nested] [flat]

* Search path
@ 2019-10-24 16:41  stan <stanb@panix.com>
  0 siblings, 2 replies; 3+ messages in thread

From: stan @ 2019-10-24 16:41 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

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.

-- 
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
						-- Benjamin Franklin





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Search path
@ 2019-10-24 16:45  Adrian Klaver <adrian.klaver@aklaver.com>
  parent: stan <stanb@panix.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Adrian Klaver @ 2019-10-24 16:45 UTC (permalink / raw)
  To: stan <stanb@panix.com>; pgsql-general@lists.postgresql.org

On 10/24/19 9:41 AM, stan wrote:
> 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.
> 

It is under:

Client Connection Defaults
https://www.postgresql.org/docs/11/runtime-config-client.html

so it works for clients that connect to Postgres not just psql. I can 
confirm it works with Access.


-- 
Adrian Klaver
adrian.klaver@aklaver.com





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Search path
@ 2019-10-25 06:13  Thomas Kellerer <spam_eater@gmx.net>
  parent: stan <stanb@panix.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Thomas Kellerer @ 2019-10-25 06:13 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

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;




 






^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2019-10-25 06:13 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-10-24 16:41 Search path stan <stanb@panix.com>
2019-10-24 16:45 ` Adrian Klaver <adrian.klaver@aklaver.com>
2019-10-25 06:13 ` Thomas Kellerer <spam_eater@gmx.net>

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