Re: GetNamedLWLockTranche crashes on Windows in normal backend
| От | Nathan Bossart |
|---|---|
| Тема | Re: GetNamedLWLockTranche crashes on Windows in normal backend |
| Дата | |
| Msg-id | aKyTa-iOdAfKynI1@nathan обсуждение исходный текст |
| Ответ на | GetNamedLWLockTranche crashes on Windows in normal backend (Sami Imseih <samimseih@gmail.com>) |
| Ответы |
Re: GetNamedLWLockTranche crashes on Windows in normal backend
|
| Список | pgsql-hackers |
On Fri, Aug 22, 2025 at 02:21:55PM -0500, Sami Imseih wrote:
> While working on [0], I observed that $SUBJECT. I encountered this issue
> while building test cases for [0], and in which GetNamedLWLockTranche is
> called outside of startup.
>
> [...]
>
> I repro'd this on a Windows machine, but one can also enable EXEC_BACKEND
> in pg_config_manual.h and call GetNamedLWLockTranche by a normal backend.
>
> I did this by injecting
> ```
> GetNamedLWLockTranche("pg_stat_statements");
> ```
> inside pgss_ExecutorEnd
If this fails, why doesn't the call in pgss_shmem_startup() also fail? Was
pg_stat_statements not loaded via shared_preload_libraries? And is the
failure a segfault or a "requested tranche is not registered" error?
--
nathan
В списке pgsql-hackers по дате отправления: