Fix the description of GUC "max_locks_per_transaction" and "max_pred_locks_per_transaction" in guc_table.c

Поиск
Список
Период
Сортировка
Искать
От
wangw.fnst@fujitsu.com
Тема
Fix the description of GUC "max_locks_per_transaction" and "max_pred_locks_per_transaction" in guc_table.c
Дата
Msg-id
OS3PR01MB6275BDD09C9B875C65FCC5AB9EA39@OS3PR01MB6275.jpnprd01.prod.outlook.com
Список
Дерево обсуждения
Fix the description of GUC "max_locks_per_transaction" and "max_pred_locks_per_transaction" in guc_table.c "wangw.fnst@fujitsu.com" <wangw.fnst@fujitsu.com>
Re: Fix the description of GUC "max_locks_per_transaction" and "max_pred_locks_per_transaction" in guc_table.c Nathan Bossart <nathandbossart@gmail.com>
RE: Fix the description of GUC "max_locks_per_transaction" and "max_pred_locks_per_transaction" in guc_table.c "wangw.fnst@fujitsu.com" <wangw.fnst@fujitsu.com>
Re: Fix the description of GUC "max_locks_per_transaction" and "max_pred_locks_per_transaction" in guc_table.c Nathan Bossart <nathandbossart@gmail.com>
RE: Fix the description of GUC "max_locks_per_transaction" and "max_pred_locks_per_transaction" in guc_table.c "wangw.fnst@fujitsu.com" <wangw.fnst@fujitsu.com>
RE: Fix the description of GUC "max_locks_per_transaction" and "max_pred_locks_per_transaction" in guc_table.c "Wei Wang (Fujitsu)" <wangw.fnst@fujitsu.com>
Hi,

When I refer to the GUC "max_locks_per_transaction", I find that the description
of the shared lock table size in pg-doc[1] is inconsistent with the code
(guc_table.c). BTW, the GUC "max_predicate_locks_per_xact" has similar problems.

I think the descriptions in pg-doc are correct.
- GUC "max_locks_per_transaction"
Please refer to the macro "NLOCKENTS" used to obtain max_table_size in the
function InitLocks.

- GUC "max_predicate_locks_per_xact"
Please refer to the macro "NPREDICATELOCKTARGETENTS" used to obtain
max_table_size in the function InitPredicateLocks.

Attach the patch to fix the descriptions of these two GUCs in guc_table.c.

[1] - https://www.postgresql.org/docs/devel/runtime-config-locks.html

Regards,
Wang Wei
В списке pgsql-hackers по дате отправления
От: John Naylor
Дата:
От: Drouvot, Bertrand
Дата:
FAQ