bryan@unhwildhats.com writes:
> I need to access a temporary table created by a WITH statement in a function
> called from the subsequent SELECT. I could not find any documentation
> forbidding this behavior.
You're imagining that a WITH clause creates an actual table. It does not,
any more than, say, a function call in the FROM clause does. It's just
a name accessible within the query the WITH is attached to. Sorry.
regards, tom lane