Re: Multiple schemas

From: Rob Sargent <robjsargent(at)gmail(dot)com>
To: rob stone <floriparob(at)tpg(dot)com(dot)au>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Multiple schemas
Date: 2026-09-24 10:41:51
Message-ID: FDD96B5D-0083-4AC7-ABC3-592A63028AC1@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

> On Sep 24, 2026, at 10:25 AM, 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.
>
> 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.*

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2026-09-24 14:15:56 Re: Multiple schemas
Previous Message Alban Hertroys 2026-09-24 09:19:25 Re: Multiple schemas