Bruce Momjian <bruce(at)momjian(dot)us> writes:
> It might be cleaner to use booleans:
> active: t/f
> in transaction: t/f
I don't think so, because that makes some very strict assumptions that
there are exactly four interesting states (an assumption that isn't
even true today, to judge by the activity strings we're using now).
regards, tom lane