pgsql: Fix ILIST_DEBUG build

Поиск
Список
Период
Сортировка
От Andres Freund
Тема pgsql: Fix ILIST_DEBUG build
Дата
Msg-id E1pIDAj-004KEJ-9D@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix ILIST_DEBUG build

In c8ad4d8166a dlist_member_check()'s arguments were made const. Unfortunately
the implementation of dlist_member_check() used dlist_foreach(), which
currently doesn't work for const lists.

As a workaround, open-code the list iteration. The other check functions
already do so.

Discussion: https://postgr.es/m/20230118182214.co7dp4oahiunwg57@awork3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2b16208753770318085b1201a6d101cab2697132

Modified Files
--------------
src/backend/lib/ilist.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Get rid of the "new" and "old" entries in a view's rangetable.
Следующее
От: Andres Freund
Дата:
Сообщение: pgsql: Add detached node functions to ilist