IsTransactionState() is being used incorrectly

Поиск
Список
Период
Сортировка
От Tom Lane
Тема IsTransactionState() is being used incorrectly
Дата
Msg-id 547.1180896782@sss.pgh.pa.us
обсуждение исходный текст
Ответы Re: IsTransactionState() is being used incorrectly  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
I just noticed that there are a number of places (mostly GUC assignment
hooks) that use IsTransactionState() to decide if it's safe for them to
do catalog lookups.  This seems pretty bogus because IsTransactionState
will return true in an aborted transaction.  I'm not sure there's any
actual bug because of other constraints on when GUC updates occur, but
it sure looks like trouble waiting to happen.

We could fix this either by changing the definition of
IsTransactionState() or by introducing another test function with
a different name.  Any thoughts which is preferable?
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: syslogger line-end processing infelicity
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: What is happening on buildfarm member baiji?