On Thu, Mar 18, 2004 at 07:48:40AM +0100, Karel Zak wrote:
> On Wed, Mar 17, 2004 at 11:02:38AM -0500, Tom Lane wrote:
> > Karel Zak <[EMAIL PROTECTED]> 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.
> 
>  Why? I said it's pseudo code. It should use standard fmgr API like
>  every other PostgreSQL function or is it problem and I overlook
>  something? It must to support arbitrary programming language and not
>  C only.

 Well, I  look over  the COPY  code and best  will start  with hardcoded
 version, but make it modular in code and if all will right we can think
 about some interface for others formats definition. OK?

 It's pity  that main idea of  current COPY is based  on separated lines
 and it is not more common interface for streaming data between FE and BE.

    Karel

-- 
 Karel Zak  <[EMAIL PROTECTED]>
 http://home.zf.jcu.cz/~zakkr/

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Reply via email to