Alexander Korotkov <a(dot)korotkov(at)postgrespro(dot)ru> writes:> I agree with both of these ideas. Patch is attached.
Pushed with minor cleanup.
regards, tom lane