On Mon, Feb 3, 2014 at 4:10 PM, Manuel Gómez <targen(at)gmail(dot)com> wrote:
> manuel(at)debian $ printf '%s\n' 'select 42 as U&"a"' | psql
> ERROR: syntax error at end of input
> LINE 1: select 42 as U&"a"
> ^
Sorry for the split mail; just noticed something else that is probably relevant.
Upon executing the failing command, the server log shows thus:
ERROR: syntax error at end of input at character 19
STATEMENT: select 42 as U&"a"