Re: server-side extension in c++

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: server-side extension in c++
Дата
Msg-id 201006031438.o53EcxV05947@momjian.us
обсуждение исходный текст
Ответ на Re: server-side extension in c++  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-general
Bruce Momjian wrote:
> Peter Geoghegan wrote:
> > >> I would have
> > >> imagined that ultimately, the call to the Pg C function must return,
> > >> and therefore cannot affect stack unwinding within the C++ part of the
> > >> program.
> > >
> > > That's the whole point; a longjmp breaks the call chain, and the
> > > guarantee that eventually the stack will unwind as functions return.
> >
> > Yes, but my point was that if that occurs above the C++ code, it will
> > never be affected by it. We have to longjmp() *over* C++ code before
> > we have a problem. However, Bruce has answered the question of whether
> > or not that happens - it does, so I guess it doesn't matter.
>
> Yes.  I have updated the C++ doc patch to call it a "distant"
> longjump().

Applied.

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + None of us is going to be here forever. +

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Auto-partitioning in COPY
Следующее
От: "Jehan-Guillaume (ioguix) de Rorthais"
Дата:
Сообщение: Re: Lock issues with partitioned table