Re: Plan for CSV handling of quotes, NULL - Mailing list pgsql-patches

From Tom Lane
Subject Re: Plan for CSV handling of quotes, NULL
Date
Msg-id 12018.1082004434@sss.pgh.pa.us
Whole thread Raw
In response to Plan for CSV handling of quotes, NULL  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Plan for CSV handling of quotes, NULL
List pgsql-patches
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> I found parse_coerce.c::TypeCategory(), which contains information about
> which data type oids are in which grouping, e.g. DATETIME, STRING,
> NUMERIC, etc.  It seems that function, if called with
> pg_type.typbasetype could help determine if quotes should be used.

TypeCategory is a crock that should have been done away with long ago.
We need to be working to eliminate it, not expand our dependency on it.

            regards, tom lane

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Plan for CSV handling of quotes, NULL
Next
From: Bruce Momjian
Date:
Subject: Re: Plan for CSV handling of quotes, NULL