Re: server-side extension in c++ - Mailing list pgsql-general

From Bruce Momjian
Subject Re: server-side extension in c++
Date
Msg-id 201006031438.o53EcxV05947@momjian.us
Whole thread Raw
In response to Re: server-side extension in c++  (Bruce Momjian <bruce@momjian.us>)
List 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 by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Auto-partitioning in COPY
Next
From: "Jehan-Guillaume (ioguix) de Rorthais"
Date:
Subject: Re: Lock issues with partitioned table