| From: | "Clay Luther" <claycle(at)cisco(dot)com> |
|---|---|
| To: | "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | "Doug McNaught" <doug(at)mcnaught(dot)org>, <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: Using C++ With SPI? |
| Date: | 2003-07-07 17:59:15 |
| Message-ID: | E58F685255415A4EB2D4B8A02AEF32E30310B6A2@evvbu-exchange.cisco.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Thanks Tom. That is good info.
(gnashing of teeth in background)
Clay
> -----Original Message-----
> From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
> Sent: Wednesday, July 02, 2003 6:46 PM
> To: Clay Luther
> Cc: Doug McNaught; pgsql-general(at)postgresql(dot)org
> Subject: Re: [GENERAL] Using C++ With SPI?
>
>
> Clay Luther <claycle(at)cisco(dot)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
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Lincoln Yeoh | 2003-07-07 17:59:21 | Re: Datatypes and performance |
| Previous Message | Steve Crawford | 2003-07-07 17:57:35 | Re: log datetimes |