Re: COPY formatting

Поиск
Список
Период
Сортировка
От Fernando Nasser
Тема Re: COPY formatting
Дата
Msg-id 405878A6.5060504@redhat.com
обсуждение исходный текст
Ответ на Re: COPY formatting  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: COPY formatting  ("Joshua D. Drake" <jd@commandprompt.com>)
Список pgsql-hackers
Tom Lane wrote:
> Karel Zak <zakkr@zf.jcu.cz> writes:
> 
>> The formatting function API can be pretty simple:
>> text *my_copy_format(text *attrdata, int direction, 
>>             int nattrs, int attr, oid attrtype, oid relation)
> 
> 
> This seems like it could only reasonably be implemented as a C function.
> I can't really imagine the average user of COPY wanting to write C in
> preference to, say, an external perl script.  What's the real use-case
> for the feature?
> 

That is why I suggested providing a pre-written/pre-compiled/installed 
function for CSV (call it CSV?).  Advanced users could still write their 
own as people can write many other things if they know their ways.


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: COPY formatting
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [PATCHES] Index creation takes for ever