Re: psql and pg_dump using obselete copy commands

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: psql and pg_dump using obselete copy commands
Date: 2005-03-23 02:41:48
Message-ID: 200503230241.j2N2fma29491@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Christopher Kings-Lynne wrote:
> > Oh, if we do that, do we disallow connecting to older servers?
>
> Not at all, since the logic would be like this:
>
> if we have new copy functions
> and we have protocol version function
> and protocol version >= 3
> then use new copy functions
> else
> use old copy functions
>
> That would be even simpler if someone would answer my question about the
> new copy functions working on a pre v3 server. (I'm setting up to test
> that atm)

I just talked to Christopher via IM. He says the new fuctions work with
older server, and pg_dump always uses the libpq version that shipped
with that version (or a newer one) so we have for TODO added:

o Update pg_dump and psql to use the new COPY libpq API

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Christopher Kings-Lynne 2005-03-23 02:42:01 Re: locks in CREATE TRIGGER, ADD FK
Previous Message Russell Smith 2005-03-23 02:37:59 Re: locks in CREATE TRIGGER, ADD FK