From: Mark Scheffer <pg2401k@pinkwin.com>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #15060: Row in table not found when using pg function in an expression
Date: Mon, 12 Feb 2018 07:20:09 -0700 (MST)
Message-ID: <1518445209487-0.post@n3.nabble.com> (raw)
In-Reply-To: <CAL9smLAxp-Qi5noy9BWBEqQWkTO05Rfzio2sF0wcjsjJrJALSA@mail.gmail.com>
References: <151844034484.1446.1721073839109092583@wrigleys.postgresql.org>
<1518442667671-0.post@n3.nabble.com>
<CAL9smLAxp-Qi5noy9BWBEqQWkTO05Rfzio2sF0wcjsjJrJALSA@mail.gmail.com>
Marko Tiikkaja-4 wrote
> I don't think this is relevant, since the changes were NOT made by the SQL
> command calling the function. They were made by the INSERT which executed
> earlier in a VOLATILE function.
Yes I should have read a few lines further, and wake up:
> Because of this snapshotting behavior, a function containing only SELECT
> commands can safely be marked STABLE, even if it selects from tables that
> might be undergoing modifications by concurrent queries. PostgreSQL will
> execute all commands of a STABLE function using the snapshot established
> for the calling query, and so it will see a fixed view of the database
> throughout that query.
Sorry for inconvenience. Hope the VOLATILE-STABLE difference in behavior
helps in resolving this bug.
--
Sent from: http://www.postgresql-archive.org/PostgreSQL-bugs-f2117394.html
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-bugs@postgresql.org
Cc: pg2401k@pinkwin.com
Subject: Re: BUG #15060: Row in table not found when using pg function in an expression
In-Reply-To: <1518445209487-0.post@n3.nabble.com>
References: <151844034484.1446.1721073839109092583@wrigleys.postgresql.org> <1518442667671-0.post@n3.nabble.com> <CAL9smLAxp-Qi5noy9BWBEqQWkTO05Rfzio2sF0wcjsjJrJALSA@mail.gmail.com> <1518445209487-0.post@n3.nabble.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