Removing savepointLevel from TransactionState

Поиск
Список
Период
Сортировка
От Gurjeet Singh
Тема Removing savepointLevel from TransactionState
Дата
Msg-id CABwTF4W_sqyjfoq1XkPr+GFGKXu1LrHPsFV7GOQhR76B6ZayHg@mail.gmail.com
обсуждение исходный текст
Ответы Re: Removing savepointLevel from TransactionState
Список pgsql-hackers
I noticed that the savepointLevel member of TransactionStateData struct is initialized to 0 from TopTransactionStateData, and never incremented or decremented afterwards.

Since this is a file-local struct I think we can simply get rid of all usages of this without any risk. I visited all the commits where this variable was introduced/used/changed and could not find any point in history where it was ever useful. Maybe I missed something, but looks like it is a leftover from someone's forward-thinking.

Patch attached.

Regards,
--
Gurjeet Singh
EnterpriseDB Corporation
The Enterprise PostgreSQL Company

Вложения

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: fix for pg_upgrade
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: pg_upgrade - add config directory setting