Re: Help in Parsing PG log usings CSV format

From: Jasen Betts <jasen(at)xnet(dot)co(dot)nz>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Help in Parsing PG log usings CSV format
Date: 2012-03-25 07:33:55
Message-ID: jkmhp3$f8n$1@reversiblemaps.ath.cx
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2012-03-22, Martin Gregorie <martin(at)gregorie(dot)org> wrote:

> Thats fairly standard. A good CSV parser only requires a field to be
> quoted if it contains commas or quotes.

quotes,commas, or linebreaks

copy ( values (2,'comma, etc'),(3,'and "quote".'),(1,'line
break') ) to stdout with csv;

--
⚂⚃ 100% natural

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jasen Betts 2012-03-25 08:04:54 Re: can these queries be combined into one?
Previous Message Bosco Rama 2012-03-25 07:32:41 Re: table alias for update