Re: verify predefined LWLocks have entries in wait_event_names.txt

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: verify predefined LWLocks have entries in wait_event_names.txt
Дата
Msg-id ZZTHsd8-_L76GJ_a@paquier.xyz
обсуждение исходный текст
Ответ на verify predefined LWLocks have entries in wait_event_names.txt  (Nathan Bossart <nathandbossart@gmail.com>)
Ответы Re: verify predefined LWLocks have entries in wait_event_names.txt
Список pgsql-hackers
On Tue, Jan 02, 2024 at 11:31:20AM -0600, Nathan Bossart wrote:
> +# Find the location of lwlocknames.h.
> +my $include_dir = $node->config_data('--includedir');
> +my $lwlocknames_file = "$include_dir/server/storage/lwlocknames.h";

I am afraid that this is incorrect because an installation could
decide to install server-side headers in a different path than
$include/server/.  Using --includedir-server would be the correct
answer, appending "storage/lwlocknames.h" to the path retrieved from
pg_config.
--
Michael

Вложения

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

Предыдущее
От: David Rowley
Дата:
Сообщение: Re: Reducing output size of nodeToString
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: Track in pg_replication_slots the reason why slots conflict?