Andres Freund <[email protected]> writes: > I don't think a function is a good idea - it'll cause a snapshot to be > held while waiting. Which in turn will cause hot_standby_feedback to not > be able to report an increased xmin up. And it will possibly hit > snapshot recovery conflicts.
Good point, but we could address that by making it a procedure no?
regards, tom lane
