agora inbox for pgsql-general@postgresql.org
help / color / mirror / Atom feedFrom: Rob Sargent <robjsargent@gmail.com>
To: rob stone <floriparob@tpg.com.au>
Cc: pgsql-general@postgresql.org
Subject: Re: Multiple schemas
Date: Thu, 24 Sep 2026 12:41:51 +0200
Message-ID: <FDD96B5D-0083-4AC7-ABC3-592A63028AC1@gmail.com> (raw)
In-Reply-To: <12e2ffff149842d8762774e8ef307743cdb96736.camel@tpg.com.au>
References: <12e2ffff149842d8762774e8ef307743cdb96736.camel@tpg.com.au>
> 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.*
view thread (7+ messages) latest in thread
Message-ID: <FDD96B5D-0083-4AC7-ABC3-592A63028AC1@gmail.com>
Permalink: ../FDD96B5D-0083-4AC7-ABC3-592A63028AC1@gmail.com/
Also on: postgresql.org/message-id/FDD96B5D-0083-4AC7-ABC3-592A63028AC1@gmail.com
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-general@postgresql.org
Cc: robjsargent@gmail.com, floriparob@tpg.com.au
Subject: Re: Multiple schemas
In-Reply-To: <FDD96B5D-0083-4AC7-ABC3-592A63028AC1@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox