Re: GiST: memory allocation, cleanup

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: GiST: memory allocation, cleanup
Дата
Msg-id 23199.1099854353@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: GiST: memory allocation, cleanup  (Neil Conway <neilc@samurai.com>)
Список pgsql-patches
Neil Conway <neilc@samurai.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

В списке pgsql-patches по дате отправления:

Предыдущее
От: Alin Vaida
Дата:
Сообщение: New translation for 8.0: Romanian
Следующее
От: Alin Vaida
Дата:
Сообщение: Romanian translation for 8.0: new file (psql)