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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Eric Ridge <eebbrr(at)gmail(dot)com>
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-10 00:07:41
Message-ID: 2752.1449706061@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Eric Ridge <eebbrr(at)gmail(dot)com> writes:
> On Wed, Dec 9, 2015 at 4:04 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> 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.

FWIW, it's exposed in 9.4 and up. But in older branches you could
probably just copy it, it's not that big.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Eric Ridge 2015-12-10 00:20:51 Re: Given a view relation OID, how to construct a Query?
Previous Message Tom Lane 2015-12-10 00:06:14 Re: [sqlsmith] Failed to generate plan on lateral subqueries