Re: What is exactly a schema?

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: What is exactly a schema?
Date: 2017-07-14 16:50:12
Message-ID: 01470f23-bc7c-68c6-cd59-df9cb740e331@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 7/14/2017 4:59 AM, marcelo wrote:
> Now I have a related question.
> Could I select a specific schema in the connection string? Say, by
> example database=mydb.schemanumbertwo ?

the default search_path is $user,public

so if you connect with different SQL usernames for your different
schemas, and have all your common tables in PUBLIC, then it will just
fall out. you'll need to be careful with permissions, of course.

--
john r pierce, recycling bits in santa cruz

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message marcelo 2017-07-14 17:41:33 Re: What is exactly a schema?
Previous Message David G. Johnston 2017-07-14 16:23:38 Re: What is exactly a schema?