Re: Given a view relation OID, how to construct a Query?

From: Eric Ridge <eebbrr(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Given a view relation OID, how to construct a Query?
Date: 2015-12-09 23:42:08
Message-ID: CANcm6wZFBDipRiH2AhxOHa_kaHHBPOmSzaMQPirujpjHYKTB6A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Dec 9, 2015 at 4:04 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> Eric Ridge <eebbrr(at)gmail(dot)com> writes:
> > I'm doing some extension development (in C) and have a situation where I
> > need to examine the target list of a view, but all I have is the view's
> oid.
>
> Open the relation and use get_view_query(), perhaps.

I figured there was something simple, but I couldn't find it. Thanks!
Sadly, it's static.

eric

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2015-12-10 00:06:14 Re: [sqlsmith] Failed to generate plan on lateral subqueries
Previous Message Michael Paquier 2015-12-09 23:16:19 Re: Speedup twophase transactions