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