Thanks Tom. That is good info. (gnashing of teeth in background)
Clay > -----Original Message----- > From: Tom Lane [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 02, 2003 6:46 PM > To: Clay Luther > Cc: Doug McNaught; [EMAIL PROTECTED] > Subject: Re: [GENERAL] Using C++ With SPI? > > > Clay Luther <[EMAIL PROTECTED]> 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 > ---------------------------(end of broadcast)--------------------------- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match