From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Alexander Farber <alexander.farber@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Should I add a new schema for my application?
Date: Mon, 17 Apr 2023 17:38:34 +0200
Message-ID: <4ac84894e2bcf19ef0a9e51ba7ab078160a3ea1c.camel@cybertec.at> (raw)
In-Reply-To: <CAADeyWg7SB37GshGHgZS1xZLKtYuZ7K67RW3dNEP=PBC369f-g@mail.gmail.com>
References: <CAADeyWg7SB37GshGHgZS1xZLKtYuZ7K67RW3dNEP=PBC369f-g@mail.gmail.com>
On Sat, 2023-04-15 at 12:06 +0200, Alexander Farber wrote:
> I am seeking for a general advice if it would be a good idea for a PostgreSQL/PostGIS using application to add a third schema.
>
> I am using postgis/postgis Docker image which comes with "public" schema.
>
> Then I have loaded OpenStreetMap data into the database and have created "osm_schema" for that:
>
> And now I need one more table, for the new mapping feature in my application, which would reference the osm_id column in the planet_osm_roads.
>
> I have not used database schemas at all until yet, I am looking for an advice if I should add a third schema here, just for my application?
I would add another schema.
The "public" schema for the extensions, "osm_schema" for the OpenStreetMap data,
and a third schema for your table. Perhaps you want to add additional objects later.
Yours,
Laurenz Albe
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: laurenz.albe@cybertec.at, alexander.farber@gmail.com
Subject: Re: Should I add a new schema for my application?
In-Reply-To: <4ac84894e2bcf19ef0a9e51ba7ab078160a3ea1c.camel@cybertec.at>
References: <CAADeyWg7SB37GshGHgZS1xZLKtYuZ7K67RW3dNEP=PBC369f-g@mail.gmail.com> <4ac84894e2bcf19ef0a9e51ba7ab078160a3ea1c.camel@cybertec.at>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox