Re: Missing dependency tracking for TableFunc nodes

Поиск
Список
Период
Сортировка
От Mark Dilger
Тема Re: Missing dependency tracking for TableFunc nodes
Дата
Msg-id 352b500b-9bf5-6e6a-fcf4-d9847738e977@gmail.com
обсуждение исходный текст
Ответ на Missing dependency tracking for TableFunc nodes  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Missing dependency tracking for TableFunc nodes
Список pgsql-hackers

On 11/11/19 1:41 PM, Tom Lane wrote:
> Would it be a good idea to move find_expr_references_walker to
> nodeFuncs.c, in hopes of making it more visible to people adding
> new node types?

I'm not sure that would be enough.  The logic of that function is not 
immediately obvious, and where to add a node to it might not occur to 
people.  If the repeated use of

     else if (IsA(node, XXX))

were replaced with

     switch (nodeTag(node)) {
         case XXX:

then the compiler, ala -Wswitch, would alert folks when they forget to 
handle a new node type.

-- 
Mark Dilger



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: PHJ file leak.
Следующее
От: Nikita Glukhov
Дата:
Сообщение: Re: SQL/JSON: JSON_TABLE