Thread: Update psql and pg_dump for new COPY api

Update psql and pg_dump for new COPY api

From
Christopher Kings-Lynne
Date:
This patch updates psql and pg_dump to use the new copy api.  Probably
needs some review.

I have tested it with dos and unix newlines, etc.

Chris

Attachment

Re: Update psql and pg_dump for new COPY api

From
Christopher Kings-Lynne
Date:
Thinking about this - with the new PQputCopyEnd, the sending of \. can
probably also be removed.

Chris

Christopher Kings-Lynne wrote:
> This patch updates psql and pg_dump to use the new copy api.  Probably
> needs some review.
>
> I have tested it with dos and unix newlines, etc.

Re: Update psql and pg_dump for new COPY api

From
Christopher Kings-Lynne
Date:
Actually, better not apply this - I think I've found some problems in it.

Chris


On Fri, 6 May 2005, Bruce Momjian wrote:

>
> Your patch has been added to the PostgreSQL unapplied patches list at:
>
>     http://momjian.postgresql.org/cgi-bin/pgpatches
>
> It will be applied as soon as one of the PostgreSQL committers reviews
> and approves it.
>
> ---------------------------------------------------------------------------
>
>
> Christopher Kings-Lynne wrote:
>> This patch updates psql and pg_dump to use the new copy api.  Probably
>> needs some review.
>>
>> I have tested it with dos and unix newlines, etc.
>>
>> Chris
>
> Content-Description:
>
> [ Attachment, skipping... ]
>
>>
>> ---------------------------(end of broadcast)---------------------------
>> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>
> --
>  Bruce Momjian                        |  http://candle.pha.pa.us
>  pgman@candle.pha.pa.us               |  (610) 359-1001
>  +  If your life is a hard drive,     |  13 Roberts Road
>  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
>

Re: Update psql and pg_dump for new COPY api

From
Bruce Momjian
Date:
Path withdrawn by author.

---------------------------------------------------------------------------

Christopher Kings-Lynne wrote:
> This patch updates psql and pg_dump to use the new copy api.  Probably
> needs some review.
>
> I have tested it with dos and unix newlines, etc.
>
> Chris

Content-Description:

[ Attachment, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073