public inbox for [email protected]
help / color / mirror / Atom feedFrom: Dominique Devienne <[email protected]>
To: Tom Lane <[email protected]>
Cc: Merlin Moncure <[email protected]>
Cc: David G. Johnston <[email protected]>
Cc: Nico Williams <[email protected]>
Cc: Adrian Klaver <[email protected]>
Cc: Laurenz Albe <[email protected]>
Cc: Olleg Samoylov <[email protected]>
Cc: pgsql-generallists.postgresql.org <[email protected]>
Subject: Re: Interesting case of IMMUTABLE significantly hurting performance
Date: Fri, 11 Apr 2025 09:59:18 +0200
Message-ID: <CAFCRh-_H5m_+z=JkKSpmrK=D6nLje1kG11tiCwkC2OXBSD5Ttw@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
<[email protected]>
<Z/bk5E6pqIBWTF3j@ubby>
<[email protected]>
<Z/foWNmbdDOWH6/M@ubby>
<CAKFQuwa-H6ZzST_dFNhviqQ8b4fPfLT+o3btfygrVOxQJhgWNQ@mail.gmail.com>
<CAHyXU0ypfKJ6LmEWJHKF63m5UEcZwB5gny3DWGQygvVeePM8mw@mail.gmail.com>
<[email protected]>
On Fri, Apr 11, 2025 at 5:52 AM Tom Lane <[email protected]> wrote:
> Merlin Moncure <[email protected]> writes:
> > I guess the real problems here are lack of feedback on a number of fronts:
> > *) the server knows the function is not immutable but lets you create it
> > anyway, even though it can have negative downstream consequences
>
> That's debatable I think. If you know what you're doing, you're going
> to be annoyed by warnings telling you that you don't.
True, but that's typically what pragmas in the code are for then,
to explicitly suppress warnings.
Or a new option in the CREATE FUNCTION command. Better safe than sorry,
and I prefer useful "on-by-default" warnings for the non-experts,
which can be disabled, than silence.
PS: And FWIW, I removed all attributes from the functions I'm
writting, based on your aerlier advice Tom.
view thread (4+ messages) latest in thread
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], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
Subject: Re: Interesting case of IMMUTABLE significantly hurting performance
In-Reply-To: <CAFCRh-_H5m_+z=JkKSpmrK=D6nLje1kG11tiCwkC2OXBSD5Ttw@mail.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