Re: ERROR: permission info at index 1 ....

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: tender wang <tndrwang(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: ERROR: permission info at index 1 ....
Date: 2023-02-13 17:21:57
Message-ID: 1263294.1676308917@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

tender wang <tndrwang(at)gmail(dot)com> writes:
> After a61b1f74823c commit, below query reports error:
> create table perm_test1(a int);
> create table perm_test2(b int);
> select subq.c0
> from (select (select a from perm_test1 order by a limit 1) as c0, b as c1
> from perm_test2 where false order by c0, c1) as subq where false;
> ERROR: permission info at index 1 (with relid=16457) does not match
> provided RTE (with relid=16460)

Yeah, this was also reported by Justin Pryzby [1].

> Below codes can fix this:

Right you are. Pushed, thanks!

regards, tom lane

[1] https://www.postgresql.org/message-id/20230212233711.GA1316%40telsasoft.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2023-02-13 17:33:33 Re: proposal: psql: psql variable BACKEND_PID
Previous Message Peter Eisentraut 2023-02-13 17:06:23 Re: proposal: psql: psql variable BACKEND_PID