On Tue, Sep 19, 2017 at 11:29 AM, Tom Lane <t...@sss.pgh.pa.us> wrote:
> Aside from being inconsistent, it doesn't cover all > the cases --- what if you have just one query output column, that is > composite, and you'd like it to go into a composite variable? That > doesn't work today, and this patch doesn't fix it, but it does create > enough confusion that we never would be able to fix it. > Actually, this does work, just not the way one would immediately expect. ct1: (text, text) DO $$ SELECT ('1', '2')::ct1 INTO c1; RAISE NOTICE '%', c1; END; $$; Notice: ("(1,2)",) And so, yes, my thinking has a backward compatibility problem. But one that isn't fixable when constrained by backward compatibility - whether this patch goes in or not. David J.