Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp> writes:
> BTW, for the problem I reported, what about checking
> IsTransactionState returns true before accessing database to find out
> conversions?
The $64 problem here is *what do you do before you can access the database*.
Detecting whether you can access the database yet is irrelevant unless
you can say what you're going to do when the answer is "no".
regards, tom lane