Re: sqlsmith: ERROR: XX000: bogus varno: 2 - Mailing list pgsql-hackers

From Robert Haas
Subject Re: sqlsmith: ERROR: XX000: bogus varno: 2
Date
Msg-id CA+Tgmoa_-X0aL8GiELTFAHQ=P-BnvnoLU9qKvvXz85gZGYyfTQ@mail.gmail.com
Whole thread Raw
In response to Re: sqlsmith: ERROR: XX000: bogus varno: 2  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Mon, Dec 20, 2021 at 4:20 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> pg_get_expr doesn't (or didn't) depend on expression_tree_walker,
> so there wasn't a problem there before.  I am worried that there
> might be other code paths, now or in future, that could try to apply
> expression_tree_walker/mutator to relpartbound trees, which is
> why I think it's a reasonable idea to teach them about such trees.

I agree that doing so is totally reasonable. I merely don't think that
previous failure to do so makes anyone a "bozo". It was far from
obvious that it was required.

> It's only a problem if you hold the opinion that there should be
> no user-reachable ERRCODE_INTERNAL_ERROR errors.  Which is a fine
> ideal, but I fear we're a pretty long way off from that.

I do hold that opinion, and I think we ought to work in that direction
even if we can't hope to get there quickly.

-- 
Robert Haas
EDB: http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Refactoring of compression options in pg_basebackup
Next
From: Vik Fearing
Date:
Subject: Re: SQL:2011 application time