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