On 3/15/18 17:49, Alexander Korotkov wrote:
> I didn't dig deeply into this subject. But should we rather teach SPI
> to execute
> utility statements without taking snapshot when not necessary. That seems
> like what executor do for client provided queries. And that seems a bit
> unlogical
> that SPI behaves differently.
Here is the same patch rewritten using SPI, using the new no_snapshots
facility recently introduced.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services