Andreas Gaab <A(dot)Gaab(at)scanlab(dot)de> writes:
> Could not the function regexp_matches(text, text) be defined to only return a text[] not a setof text[]?
It'd be pretty hard to change at this point, because of
backwards-compatibility considerations, and because the two functions
share a single implementation.
regards, tom lane