Re: [PATCH] Detect escape of ErrorContextCallback stack pointers (and from PG_TRY() )
От | Craig Ringer |
---|---|
Тема | Re: [PATCH] Detect escape of ErrorContextCallback stack pointers (and from PG_TRY() ) |
Дата | |
Msg-id | CAMsr+YGMZG6SrF6NpTaCCjktPQzmauCVrD_6CoOOvLwMRWacsA@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: [PATCH] Detect escape of ErrorContextCallback stack pointers (and from PG_TRY() ) (Craig Ringer <craig@2ndquadrant.com>) |
Ответы |
Re: [PATCH] Detect escape of ErrorContextCallback stack pointers (and from PG_TRY() )
|
Список | pgsql-hackers |
On Fri, 4 Sep 2020 at 14:55, Craig Ringer <craig@2ndquadrant.com> wrote:
Example here:
So I find that actually, the __attribute__((callback(fn)) approach is unnecessary for the purpose proposed.
I still think we should be looking at tidying up the error contexts API, but it's easy enough for extensions to provide a wrapper over it, so that's not a big deal really.
I will submit my docs patches separately to ensure they get some attention, and I'll experiment with llvm threadsafety annotations / capabilities.
--
В списке pgsql-hackers по дате отправления: