Re: 7.3 --> 7.4 C Functions - Mailing list pgsql-general

From Joe Conway
Subject Re: 7.3 --> 7.4 C Functions
Date
Msg-id 3FD2263E.9050902@joeconway.com
Whole thread Raw
In response to 7.3 --> 7.4 C Functions  ("Nigel J. Andrews" <nandrews@investsystems.co.uk>)
List pgsql-general
Nigel J. Andrews wrote:
> However, all this runs on a 7.3 backend and the priority for changing that is
> less that the recoding in C, if that goes ahead. So, what I'm interested in is
> people's views on how easy it is to port C functions from 7.3 to 7.4. I know
> the elog has changed but that's just a bit of leg work, I presume there is
> nothing significant in how to use SPI and the normal sort of tuple manipulation
> things.

I don't think you'll run into too many issues if your needs are simple.
The only thing that I can think of that you might run into is:

7.3    tuplestore_begin_heap(true, SortMem)
7.4    tuplestore_begin_heap(true, false, SortMem)

And that will only apply if you have an SRF that returns a tuplestore
(contrib/tablefunc as an example). You can continue to use elog in 7.4
-- you just don't get to take advantage of the better ereport functionality.

HTH,

Joe



pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: 7.3 --> 7.4 C Functions
Next
From: "Nigel J. Andrews"
Date:
Subject: Re: 7.3 --> 7.4 C Functions