From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Mark Raynsford <co+org.postgresql@io7m.com>
Cc: David G. Johnston <david.g.johnston@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Column value derived from generated column in INSERT?
Date: Wed, 19 Oct 2022 12:58:35 -0700
Message-ID: <507b68d6-db0d-6cc5-f9d3-2dbd7bc8ad97@aklaver.com> (raw)
In-Reply-To: <20221019194805.79d0b2ed@sunflower.int.arc7.info>
References: <20221019173225.53d939f2@sunflower.int.arc7.info>
<CAKFQuwZpq-hZ-zBN8KhzF3Ke3bheHHpp_f=tEkH30+JTXtaMsg@mail.gmail.com>
<20221019193057.39aff1c1@sunflower.int.arc7.info>
<82c54487-2f99-7829-6f76-a266afb8890a@aklaver.com>
<20221019194805.79d0b2ed@sunflower.int.arc7.info>
On 10/19/22 12:48, Mark Raynsford wrote:
> On 2022-10-19T12:43:31 -0700
> Adrian Klaver <adrian.klaver@aklaver.com> wrote:
>>
>> HINT: There is an entry for table "t", but it cannot be referenced from
>> this part of the query.
>>
>> HINT: There is a column named "x" in table "t", but it cannot be
>> referenced from this part of the query.
>
> Yes, I saw those, hence asking on the list if there was a way to do it.
Using a trigger.
>
> I'll handle it with multiple statements.
>
--
Adrian Klaver
adrian.klaver@aklaver.com
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: adrian.klaver@aklaver.com, co+org.postgresql@io7m.com, david.g.johnston@gmail.com
Subject: Re: Column value derived from generated column in INSERT?
In-Reply-To: <507b68d6-db0d-6cc5-f9d3-2dbd7bc8ad97@aklaver.com>
References: <20221019173225.53d939f2@sunflower.int.arc7.info> <CAKFQuwZpq-hZ-zBN8KhzF3Ke3bheHHpp_f=tEkH30+JTXtaMsg@mail.gmail.com> <20221019193057.39aff1c1@sunflower.int.arc7.info> <82c54487-2f99-7829-6f76-a266afb8890a@aklaver.com> <20221019194805.79d0b2ed@sunflower.int.arc7.info> <507b68d6-db0d-6cc5-f9d3-2dbd7bc8ad97@aklaver.com>
* 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