public inbox for [email protected]
help / color / mirror / Atom feedFrom: [email protected]
To: [email protected]
Subject: Re: Trick to create alias/mirror table
Date: Mon, 8 Jul 2024 14:09:30 +0200
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAKJANSDruTfkYCCKuWr3camHGLuO67s-=DYX-Kjv4fQMkhn09g@mail.gmail.com>
References: <CAKJANSDruTfkYCCKuWr3camHGLuO67s-=DYX-Kjv4fQMkhn09g@mail.gmail.com>
intmail01 schrieb am 08.07.2024 um 13:27:
> Hi, Looking for a trick to make something like an alias or a mirror
> table. The alias can be updated. View is not suitable because it is
> read only data. The alias is always linked to the original table.
> When a modification occurred in the original table this will be
> visible in all link tables.
This sounds very much as if a view would solve that requirement.
Views can be updated in Postgres. Either automatically if it's a "simple view"
or by providing a function that handles the DML.
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: [email protected]
Cc: [email protected], [email protected]
Subject: Re: Trick to create alias/mirror table
In-Reply-To: <[email protected]>
* 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