Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com> writes:> I propose that we simply add add a NULL-check there:
Certainly not. A read-only function has no business causing asnapshot to become established.
regards, tom lane