Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> I suppose this confusion is only possible because string_agg has both
> a one-argument and a two-argument form.
Right, or at least that's what allows the mistake to go through without
reporting any error.
regards, tom lane