improved DefElem list processing

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема improved DefElem list processing
Дата
Msg-id 4021548b-0c51-6298-d54e-4cc931d73182@2ndquadrant.com
обсуждение исходный текст
Ответы Re: improved DefElem list processing  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: improved DefElem list processing  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Here are two WIP patches to improve the DefElem list processing that is
used by many utility commands.

One factors out the duplicate checks, which are currently taking up a
lot of space with duplicate code.  I haven't applied this everywhere
yet, but the patch shows how much boring code can be saved.

The other adds a location field to the DefElem node.  This allows
showing an error pointer if there is a problem in one of the options,
which can be useful for complex commands such as COPY or CREATE USER.

At the moment, these patches are independent and don't work together,
but the second one would become much easier if the first one is accepted.

If these ideas are acceptable, I'll produce a complete patch series.

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

Вложения

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: regression test for extended query protocol
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Design for In-Core Logical Replication