From: Volkan YAZICI <volkan.yazici@gmail.com>
To: Piotr Sulecki <Piotr.Sulecki@sybilla.traxelektronik.pl>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Will libpq 8 PQ*cancel functions work with 7.4 servers?
Date: Mon, 13 Jun 2005 17:23:05 +0300
Message-ID: <7104a73705061307232c33810a@mail.gmail.com> (raw)
In-Reply-To: <42AD9354.7000008@sybilla.traxelektronik.pl>
References: <42AD47D7.8090006@sybilla.traxelektronik.pl>
<7104a737050613065754b7f3f4@mail.gmail.com>
<42AD9354.7000008@sybilla.traxelektronik.pl>
Hi,
On 6/13/05, Piotr Sulecki <Piotr.Sulecki@sybilla.traxelektronik.pl> wrote:
> Volkan YAZICI napisaĆ(a):
> >>My question is, will the new interface (PQgetCancel / PQcancel /
> >>PQfreeCancel) work with the version 7.4 server?
> >
> > AFAIC, no.
>
> That would mean it was a protocol change as well as an API change.
> If the protocol was unchanged, the new API would generate the same
> link-level events, only in a different way. And I seem to recall reading
> somewhere that version 8.0 uses the same link-level protocol for
> client-to-backend communication as 7.4 did. What you say contradicts it.
Sorry, I get your question wrong. You're right. There isn't a new
protocol update in related patch. It just creates a more efficient
form for cancel operation. Furthermore, as you can see from the
documentation, you're still able to use obsolete PQrequestCancel()
function with same protocol.
But, as I see from patching date, new code is available only in 8.0
releases. You need to patch your 7.4 libpq library for similar
functionality. (I didn't try it but it should work when you try patch
related source files.) Or, you may use a new libpq with old 7.4
server.
Regards.
P.S. I hope, I didn't miss anything this time :)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: volkan.yazici@gmail.com, Piotr.Sulecki@sybilla.traxelektronik.pl
Subject: Re: Will libpq 8 PQ*cancel functions work with 7.4 servers?
In-Reply-To: <7104a73705061307232c33810a@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox