Re: cvs text to quoted cvs text

From: Michael Moore <michaeljmoore(at)gmail(dot)com>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: postgres list <pgsql-sql(at)postgresql(dot)org>
Subject: Re: cvs text to quoted cvs text
Date: 2016-09-26 22:05:02
Message-ID: CACpWLjPb8MerOv=nC9O99EyDN0+UMVN-+dP6sp2UO-=5Qarymg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Very nice, thanks Pavel.

On Mon, Sep 26, 2016 at 1:13 PM, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
wrote:

>
>
> 2016-09-26 22:09 GMT+02:00 Michael Moore <michaeljmoore(at)gmail(dot)com>:
>
>> Igor, not seeing how quote_literal will quote *each element* of the csv.
>> It will quote the entire string, but not each element.
>>
>
> SELECT string_agg(quote_literal(v),',') from
> unnest('{AHOJ,NAZDAR}'::text[]) g(v);
>
>
>> Pavel, Interesting but unfortunately my dynamic sql is very complex,
>> hundreds of lines, and a undetermined number of USING variables would be
>> needed.
>>
>> Thanks!
>>
>
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message James Cloos 2016-09-29 12:35:30 using possibly null timestamptz columns
Previous Message Pavel Stehule 2016-09-26 20:13:40 Re: cvs text to quoted cvs text