Re: Getting ERROR: bogus varno: 2

2019-03-12 Thread Tom Lane
I wrote: > Neel Patel writes: >> Is this error message expected or what should be the behaviour ? > It's certainly a bug. Oh, no, I take that back: it's not a bug, you're just abusing pg_get_expr() to try to do something it can't do, which is make sense of an expression involving more than one r

Re: Getting ERROR: bogus varno: 2

2019-03-12 Thread Tom Lane
Neel Patel writes: > Getting "*ERROR: bogus varno: 2*" and below is the sample SQL. Hmm, reproduced here on HEAD. > Is this error message expected or what should be the behaviour ? It's certainly a bug. Don't know the cause yet, but it looks like pg_get_expr(

Getting ERROR: bogus varno: 2

2019-03-12 Thread Neel Patel
Hi, Getting "*ERROR: bogus varno: 2*" and below is the sample SQL. - Create table "test_bogus" as below. CREATE TABLE test_bogus( id serial PRIMARY KEY, displa