Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> Well, that's fair enough. I don't mind having two functions. Should
> the whole-table function also include invisible tuples?
Certainly, that's exactly why I was proposing it. You can do a join
if you want to suppress them.
regards, tom lane