Boszormenyi Zoltan <zb(at)cybertec(dot)at> writes:
> I looked at ruleutils.c and now I am a little confused.
> I mean different functions use different subsystems to
> get their info. E.g.:
Yup.
> Am I missing something?
Yes. That code is hopelessly intertwined with other operations inside
the backend that need to run on SnapshotNow time. Disentangling it is
not a simple project.
regards, tom lane