From: PG Doc comments form <noreply@postgresql.org>
To: pgsql-docs@lists.postgresql.org
Cc: danydb@noalyss.eu
Subject: SET feature
Date: Fri, 28 Oct 2022 10:14:06 +0000
Message-ID: <166695204625.630.3067402447013848509@wrigleys.postgresql.org> (raw)
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/15/sql-set.html
Description:
Hi,
I remember in version 9 , to use variable you had to change in the
postgresql.
Today it is easier , just use
SET SESSION myprefix.myvariable = 'whatever'
and all the transactions can use it , it is very useful in some cases, for
example to track the author of a change , you don't need to change all your
java/php/python code , just use a trigger on the table to fill up a column
"change_by"
I've checked the documentation and that feature is not explained at all, not
even in the SET Command.
Hope it helps
Regards,
Sparkx
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-docs@postgresql.org
Cc: noreply@postgresql.org, pgsql-docs@lists.postgresql.org, danydb@noalyss.eu
Subject: Re: SET feature
In-Reply-To: <166695204625.630.3067402447013848509@wrigleys.postgresql.org>
* 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