How to remove quotes from COPY TO result? - Mailing list pgsql-novice

From Michael Rowan
Subject How to remove quotes from COPY TO result?
Date
Msg-id E10B9D5E-90CF-49D3-9C48-36CD9DD59F68@internode.on.net
Whole thread Raw
Responses Re: How to remove quotes from COPY TO result?
List pgsql-novice
PostgreSQL 8.4.1

I have a table "abbreviation" created as follows:

id serial NOT NULL,
full_name character varying(16),
short_name character varying(16),

I import some data from a tab delimited text file like so:

1    "STREET"        "ST"
2    "ROAD"             "RD"

using COPY abbreviation FROM <<myfile>>

The data is imported but I want the character columns to be stripped of the enclosing double-quotes and they are not.
Whatdo I have to do?   

TIA

Michael Rowan
mike.rowan@internode.on.net

11 Kingscote Street
ALBERTON
South Australia 5014

tel 618 8240 3993




pgsql-novice by date:

Previous
From: Steve Crawford
Date:
Subject: Re: Need help doing a CSV import
Next
From: Joe Conway
Date:
Subject: Re: How to remove quotes from COPY TO result?