Re: Using C++ With SPI?
От | Clay Luther |
---|---|
Тема | Re: Using C++ With SPI? |
Дата | |
Msg-id | E58F685255415A4EB2D4B8A02AEF32E30310B6A2@evvbu-exchange.cisco.com обсуждение исходный текст |
Список | pgsql-general |
Thanks Tom. That is good info. (gnashing of teeth in background) Clay > -----Original Message----- > From: Tom Lane [mailto:tgl@sss.pgh.pa.us] > Sent: Wednesday, July 02, 2003 6:46 PM > To: Clay Luther > Cc: Doug McNaught; pgsql-general@postgresql.org > Subject: Re: [GENERAL] Using C++ With SPI? > > > Clay Luther <claycle@cisco.com> writes: > >> I had been having good luck writing stored procs in C++ with > >> Postgres. > > I'm really surprised you were able to do much of anything. > C++ defines > a bunch of keywords that are not keywords in plain C, and > unsurprisingly > some of those words are used as names in various Postgres > header files. > > There's been some talk of renaming stuff to make at least the most > important headers C++-safe, but it's not very high on the priority > list; I think there was concern about breaking existing user-written > code. > > I would think btw that you'd need extern "C" {...} around *all* the > Postgres headers you include, not just some of 'em. > > regards, tom lane >
В списке pgsql-general по дате отправления: