Skip site navigation (1) Skip section navigation (2)

Deprecating heap_formtuple/heap_modifytuple/heap_deformtuple

From: Gregory Stark <stark(at)enterprisedb(dot)com>
To: PostgreSQL-development Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Deprecating heap_formtuple/heap_modifytuple/heap_deformtuple
Date: 2007-10-17 17:57:51
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
I think we should go ahead and kill the old 'n'/' ' api for heaptuple.c. The
code duplication here is really annoying and it makes it confusing for
developers trying to read or write code where they have to keep straight which
interface they're using.

What I think we should do is just announce they're deprecated for 8.3 without
changing anything and then early in 8.4 remove them and convert our own code
to use the new api. We could add wrappers prior to the 8.4 release which
converts the isnull/replaces arrays for the benefit of outside modules.

As an exercise I just went ahead and removed all of our calls to it and while
it was quite annoying there weren't really any show-stoppers. The worst thing
I find is that SPI uses a similar interface which means it'll be inconsistent
with the underlying interface -- but there's no direct binding between the two
so it doesn't cause any actual breakage, just potential confusion.

  Gregory Stark


pgsql-hackers by date

Next:From: Tom LaneDate: 2007-10-17 18:03:37
Subject: Re: tsearch2api project
Previous:From: Tom LaneDate: 2007-10-17 17:36:43
Subject: Re: [RFC] extended txid docs

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group