Re: Views no longer in rangeTabls?

From: David Steele <david(at)pgmasters(dot)net>
To: Amit Langote <amitlangote09(at)gmail(dot)com>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: Views no longer in rangeTabls?
Date: 2023-06-10 07:30:29
Message-ID: b8a0b834-c936-d135-df66-cc119ceb8205@pgmasters.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 6/10/23 09:57, Amit Langote wrote:
> On Sat, Jun 10, 2023 at 15:51 David Steele <david(at)pgmasters(dot)net
> <mailto:david(at)pgmasters(dot)net>> wrote:
> On 6/9/23 19:14, Tom Lane wrote:
> >
> > If you see "rte->rtekind == RTE_SUBQUERY && OidIsValid(rte->relid)",
> > it's dead certain that relid refers to a view, so you could just wire
> > in that knowledge.
>
> Yeah, that's a good trick. Even so, I wonder why relkind is not set
> when
> relid is set?
>
> I too have been thinking that setting relkind might be a good idea, even
> if only as a crosscheck that only view relations can look like that in
> the range table.

+1. Even better if we can do it for PG16.

Regards,
-David

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dave Cramer 2023-06-10 11:20:53 Re: Let's make PostgreSQL multi-threaded
Previous Message Amit Langote 2023-06-10 06:57:22 Re: Views no longer in rangeTabls?