Re: Multiple schemas

From: rob stone <floriparob(at)tpg(dot)com(dot)au>
To: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, Alban Hertroys <haramrae(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Multiple schemas
Date: 2026-09-25 06:48:09
Message-ID: 8b48713a05cbcd6d4d2a4ad5000ae4e09e0fd97d.camel@tpg.com.au
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, 2026-09-24 at 08:01 -0700, Adrian Klaver wrote:
> On 9/24/26 2:19 AM, Alban Hertroys wrote:
> >
> > > On 24 Sep 2026, at 10:24, rob stone <floriparob(at)tpg(dot)com(dot)au>
> > > wrote:
> > >
> > > Hello,
> > >
> > > I've been using a single schema in a database for years and I
> > > decided
> > > to try using multiple schemas in the same database.
> > >
> > > So, I set up a test database and followed the same procedure that
> > > I
> > > have used in the past but this time specifying multiple schemas.
> >
> > …
> >
> > > show search_path;
> > >   search_path
> > > ----------------
> > > "bsmdl, foots"
> > > (1 row)
> >
> > I think there’s your problem. You have schemas named “bsmdl” and
> > “foots”, not a schema named "bsmdl, foots”.
>
> In other words you did:
>
> SET search_path TO 'bsmdl, foots'
>
> and got
>
> SHOW search_path ;
>    search_path
> ----------------
>   "bsmdl, foots"
>
>
> Instead you should do:
>
> SET search_path TO bsmdl, foots;
>
> to get:
>
> SHOW search_path ;
>   search_path
> --------------
>   bsmdl, foots
>
>

Thanks Adrian.
That was the problem -- putting single quotes around the schema names.
Now it is working as intended.

Cheers,
Rob

In response to

Browse pgsql-general by date

  From Date Subject
Previous Message sutyak 2026-09-24 22:44:40 Re: PostgreSQL 18 FIPS mode in Windows