Re: csv vs json? - Mailing list pgsql-admin

From Rich Pixley
Subject Re: csv vs json?
Date
Msg-id fe216922-8ab8-3746-9632-3e9f4c9502cc@hayden.ai
Whole thread Raw
In response to Re: csv vs json?  (Samed YILDIRIM <samed@reddoc.net>)
Responses Re: csv vs json?  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-admin

No error message.

And there was no quoting.  That's the bug.

On 1/9/23 3:55 PM, Samed YILDIRIM wrote:
Hi Rich,

It is hard to say what the problem is you encountered and offer any solution. Can you share the error message you got and example lines from your csv file?

I only can recommend you to check the document on the link below. CSV format of file might not match with default settings of PostgreSQL. You can adjust via parameters, such as delimiter, quote, and escape.


Best regards.
Samed YILDIRIM


On Wed, 4 Jan 2023 at 19:10, Rich Pixley <rich.pixley@hayden.ai> wrote:
I'm downloading a table in csv using pgAdmin.  Some tables work just
fine.  Others have JSON fields in the table and these aren't.  What I
get instead is a string with multiple unquoted double quotes that are,
correctly I think, complained about by my csv reader.

Is there a way to get these quoted properly?  Am I doing something
stupid?  Is this a bug?




pgsql-admin by date:

Previous
From: Samed YILDIRIM
Date:
Subject: Re: MSSQL to PostgreSQL Migration
Next
From: "David G. Johnston"
Date:
Subject: Re: csv vs json?