Re: save redundant code for pseudotype I/O functions

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: save redundant code for pseudotype I/O functions
Дата
Msg-id d0014805-67b8-8b81-02e4-86e0bd2b0888@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: save redundant code for pseudotype I/O functions  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 10/28/16 9:25 AM, Tom Lane wrote:
> Would it be better to use CppAsString and CppConcat instead of directly
> using # and ##, for consistency with what we do elsewhere?

I modeled this after several similar places in gin and tsearch code,
which use ##:

contrib/btree_gin/btree_gin.c
src/backend/tsearch/wparser_def.c
src/backend/utils/adt/tsvector_op.c

Do people prefer the macros over this?

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: Mithun Cy
Дата:
Сообщение: Re: Patch: Implement failover on libpq connect level.
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Patch: Implement failover on libpq connect level.