Re: confused with name in the pic - Mailing list pgsql-hackers

From David G. Johnston
Subject Re: confused with name in the pic
Date
Msg-id CAKFQuwZB+4CcuMGLj473R+j5v2KOBkxESESFN0VGrbMVPoE=bQ@mail.gmail.com
Whole thread Raw
In response to confused with name in the pic  ("jacktby@gmail.com" <jacktby@gmail.com>)
List pgsql-hackers
On Wed, Oct 26, 2022 at 2:13 AM jacktby@gmail.com <jacktby@gmail.com> wrote:
typedef struct A_Expr



{



    pg_node_attr(custom_read_write)



    NodeTag     type;



    A_Expr_Kind kind;           /* see above */



    List       *name;           /* possibly-qualified name of operator */



    Node       *lexpr;          /* left argument, or NULL if none */



    Node       *rexpr;          /* right argument, or NULL if none */



    int         location;       /* token location, or -1 if unknown */



} A_Expr;



I run a sql like select a,b from t3 where a > 1; and I get the parseTree for selectStmt:



why the name is '-' but not '>'?


Given the general lack of interest in this so far I'd suggest you put together a minimal test case that includes a simple print-to-log command patched into HEAD showing the problematic parse tree in its internal form.

Posting an image of some custom visualization that seems evidently produced by custom code that itself may be buggy against an unspecified server with no indication how any of this all works doesn't seem like enough detail and there is little reason to think that such an obvious bug could exist.   I do agree that your expectation seems quite sound.  Though I do not have the faintest idea how to actually go about reproducing your result even in the minimal way described above (though I know enough to know it is possible, just not where to patch).

David J.

pgsql-hackers by date:

Previous
From: Zheng Li
Date:
Subject: Re: Support logical replication of DDLs
Next
From: Michael Paquier
Date:
Subject: Re: Some regression tests for the pg_control_*() functions