Re: Missing dependency tracking for TableFunc nodes

From: Mark Dilger <hornschnorter(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Missing dependency tracking for TableFunc nodes
Date: 2019-11-11 22:33:24
Message-ID: 352b500b-9bf5-6e6a-fcf4-d9847738e977@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Nikita Glukhov 2019-11-12 00:09:42 Re: SQL/JSON: JSON_TABLE
Previous Message Tom Lane 2019-11-11 22:24:45 Re: PHJ file leak.