Re: psql and pg_dump using obselete copy commands - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: psql and pg_dump using obselete copy commands
Date
Msg-id 200503230221.j2N2LUc26415@candle.pha.pa.us
Whole thread Raw
In response to Re: psql and pg_dump using obselete copy commands  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Responses Re: psql and pg_dump using obselete copy commands  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
List pgsql-hackers
Christopher Kings-Lynne wrote:
> > We have been telling people to use newer pg_dump's on older servers, but
> > we only support reloading into the current PostgreSQL version, so I see
> > no reason not to updated it to the current syntax.
> > 
> > We added the new syntax in 7.3.
> > 
> > Added to TODO:
> > 
> >     o Update pg_dump to use the newer COPY syntax
> 
> I think you misunderstood me - all I think we should do is switch to 
> using PQgetCopyData instead of PQgetline (deprecated) if the libpq 
> pg_dump is built against has it.  (And the protocol supports it.)
> 
> Same for PQputCopyData vs. PQputline.

Oh, if we do that, do we disallow connecting to older servers?

TODO item removed.

--  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,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Christopher Kings-Lynne
Date:
Subject: Re: psql and pg_dump using obselete copy commands
Next
From: Christopher Kings-Lynne
Date:
Subject: Re: psql and pg_dump using obselete copy commands