Re: 7.3 --> 7.4 C Functions

Joe Conway <mail@joeconway.com>

From: Joe Conway <mail@joeconway.com>
To: "Nigel J. Andrews" <nandrews@investsystems.co.uk>
Cc: pgsql-general@postgresql.org
Date: 2003-12-06T18:55:58Z
Lists: 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