On 28th of October Tom Lane committed his patch that changes some internals of functions, but it also adds interesting capability.

Pavel Stehule wrote, and Tom Lane committed patch which ads new syntax for set-returning functions: "RETURNS TABLE".