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