Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> Let's think together and try to find a reasonable way to get the union
> procedures tested regularly. It is pretty clear that having them run
> only when the race condition occurs is not acceptable; bugs go
> unnoticed.
[ just a drive-by comment... ] Maybe you could set up a testing mode
that forces the race condition to occur? Then you could test the calling
code paths, not only the union procedures per se.
regards, tom lane