Re: GiST: memory allocation, cleanup

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: pgsql-patches <pgsql-patches(at)postgresql(dot)org>, Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
Subject: Re: GiST: memory allocation, cleanup
Date: 2004-11-07 19:05:53
Message-ID: 23199.1099854353@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Neil Conway <neilc(at)samurai(dot)com> writes:
> Tom Lane wrote:
>> I'm a bit dubious about this, mainly because you did not likewise
>> const-ify the other input arguments; it seems confusing to do a partial
>> const-ification.

> Well, "partial const-ification" is the rule rather than the exception in
> the backend right now. I'll take a look at adding more const qualifiers,
> but I don't really see why "partial const-ification" is confusing.

In this particular case I think it's confusing because the Datum and
nulls arrays are really two halves of a single data structure.
Const-ifying just one of them obscures that fact. I'd be happy if you
marked both of them const.

regards, tom lane

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Alin Vaida 2004-11-07 19:38:29 Romanian translation for 8.0: new file (psql)
Previous Message Thomas Hallgren 2004-11-07 18:33:32 Re: pgxs under Win32 for PL/Java