Re: SQL/MED - file_fdw - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: SQL/MED - file_fdw
Date
Msg-id 4D0648E5.9050400@dunslane.net
Whole thread Raw
In response to Re: SQL/MED - file_fdw  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: SQL/MED - file_fdw  (Itagaki Takahiro <itagaki.takahiro@gmail.com>)
List pgsql-hackers

On 12/13/2010 11:12 AM, Tom Lane wrote:
> Andrew Dunstan<andrew@dunslane.net>  writes:
>> Hmm. I don't think that's going to expose enough for what I want to be
>> able to do. I actually had in mind exposing lower level routines like
>> CopyReadAttibutesCSV/CopyReadAttributesText and allowing the Foreign
>> Data Wrapper to manipulate the raw values read (for example from an
>> irregularly shaped CSV file).
> I think that exposing the guts of COPY to the open air is a bad idea.
> We refactor that code for performance or other reasons every release or
> two.  I don't want to find us tied down to the current implementation
> because we're afraid of breaking third-party FDWs.
>

In that case I guess I'll need to do what Shigeru-san has done, and copy 
large parts of copy.c.

cheers

andrew


pgsql-hackers by date:

Previous
From: Florian Pflug
Date:
Subject: Re: Problem with pg_upgrade (8.4 -> 9.0) due to ALTER DATABASE SET ROLE
Next
From: Hitoshi Harada
Date:
Subject: Re: SQL/MED - core functionality