Re: Why overhead of SPI is so large? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Why overhead of SPI is so large?
Date
Msg-id 30691.1574365477@sss.pgh.pa.us
Whole thread Raw
In response to Re: Why overhead of SPI is so large?  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: Why overhead of SPI is so large?  (Pavel Stehule <pavel.stehule@gmail.com>)
List pgsql-hackers
Pavel Stehule <pavel.stehule@gmail.com> writes:
> čt 21. 11. 2019 v 10:31 odesílatel Konstantin Knizhnik <
> k.knizhnik@postgrespro.ru> napsal:
>> With contain_mutable_functions the patch becomes trivial.

> Stable functions doesn't need own snapshot too, so it is not fully correct,
> but it is on safe side.

No, I doubt that.  A stable function is allowed to inspect database state,
and if it's being called by a volatile function, it has every right to
expect that it'd see updates-so-far made by the volatile function.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Juan José Santamaría Flecha
Date:
Subject: Re: TAP tests aren't using the magic words for Windows file access
Next
From: Paul Jungwirth
Date:
Subject: Re: range_agg