Re: Multiple schemas - Mailing list pgsql-general

From Rob Sargent
Subject Re: Multiple schemas
Date
Msg-id FDD96B5D-0083-4AC7-ABC3-592A63028AC1@gmail.com
Whole thread
In response to Multiple schemas  (rob stone <floriparob@tpg.com.au>)
Responses Re: Multiple schemas
Re: Multiple schemas
List pgsql-general

> On Sep 24, 2026, at 10:25 AM, rob stone <floriparob@tpg.com.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.
>
> O/S
> Linux 7.2.6+deb14-amd64 #1 SMP PREEMPT_DYNAMIC Debian 7.2.6-1 (2026-09-
> 16) x86_64 GNU/Linux
>
> Postgres
> psql (18.6 (Debian 18.6-3))
>
> \dn
>      List of schemas
>  Name  |       Owner
> --------+-------------------
> bsmdl  | teamone
> foots  | teamone
> public | pg_database_owner
> (3 rows)
>
> show search_path;
>  search_path
> ----------------
> "bsmdl, foots"
> (1 row)
>
> A \dn runs a query against the catalogue whereas "show search_path"
> displays what was obtained from the connection.
>
> I ran a create table script where all tables were fully qualified
> schema.table_name and it completed without any errors.
>
> Then I ran:-
> \d system_defaults (one of the newly created tables)
> and this was the result:-
> Did not find any relation named "system_defaults".

\d bsmdl.system_defaults
Or
\dt bsmdl.*


pgsql-general by date:

Previous
From: Alban Hertroys
Date:
Subject: Re: Multiple schemas
Next
From: Tom Lane
Date:
Subject: Re: Multiple schemas