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-09 23:04:21
Message-ID: 13938.1449702261@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:
> 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.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Merlin Moncure 2015-12-09 23:13:38 Re: [sqlsmith] Failed to generate plan on lateral subqueries
Previous Message Michael Paquier 2015-12-09 23:03:05 Re: Making tab-complete.c easier to maintain