Re: Query cancel seems to be broken in master since Oct 17 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Query cancel seems to be broken in master since Oct 17
Date
Msg-id 32574.1476801655@sss.pgh.pa.us
Whole thread Raw
In response to Re: Query cancel seems to be broken in master since Oct 17  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Query cancel seems to be broken in master since Oct 17  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-hackers
I wrote:
> The cleanest fix might be to change those various "long" variables
> to uint32.  You'd have to think about how to handle the ntohl/htonl
> calls that are used on them, though.

Or actually, no, you wouldn't have to think very hard.  I was supposing
that those calls were declared to traffic in "long"s, but they aren't
and never have been, at least not since SUSv2:

uint32_t htonl(uint32_t hostlong);
uint16_t htons(uint16_t hostshort);
uint32_t ntohl(uint32_t netlong);
uint16_t ntohs(uint16_t netshort);

So s/long/uint32/ would probably fix it just fine.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Euler Taveira
Date:
Subject: Re: Move pg_largeobject to a different tablespace *without* turning on system_table_mods.
Next
From: Andreas Joseph Krogh
Date:
Subject: Re: Move pg_largeobject to a different tablespace *without* turning on system_table_mods.