Thomas Kellerer <spam_eater(at)gmx(dot)net> writes:
> But what about the (temp) space needed for e.g. sorting, grouping or intermediate results from CTEs or derived tables?
> Is that also controlled through the temp_tablespaces?
Yes.
regards, tom lane