Re: inappropriate use of NameGetDatum macro

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: inappropriate use of NameGetDatum macro
Дата
Msg-id 16910.1473801517@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: inappropriate use of NameGetDatum macro  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
I wrote:
> Mark Dilger <hornschnorter@gmail.com> writes:
>> there are several places in the code where variables defined as
>> (char *) or as (const char *) are passed to the NameGetDatum()
>> macro.  I believe it would be better form to use CStringGetDatum()
>> in these locations.  I am aware that these two macros are internally
>> the same.

> I'm tempted to propose that we redefine NameGetDatum as
> #define NameGetDatum(X) CStringGetDatum(NameStr(*(X)))

Pushed with that change.
        regards, tom lane



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

Предыдущее
От: Petr Jelinek
Дата:
Сообщение: Re: autonomous transactions
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: pg_basebackup wish list