Re: subxcnt defined as signed integer in SnapshotData and SerializeSnapshotData

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Simon Riggs <simon(at)2ndquadrant(dot)com>, PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: subxcnt defined as signed integer in SnapshotData and SerializeSnapshotData
Date: 2015-05-13 16:03:21
Message-ID: CAB7nPqQN5T86ZtBgAuBOMx2gFNxGSQSGhHF+NVhWE6RYQ23jLQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, May 14, 2015 at 12:02 AM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
> On Sat, May 9, 2015 at 8:48 AM, Michael Paquier
> <michael(dot)paquier(at)gmail(dot)com> wrote:
>> On Fri, May 8, 2015 at 10:27 PM, Simon Riggs wrote:
>>> On 8 May 2015 at 13:02, Michael Paquier wrote:
>>>> I think that we should redefine subxcnt as uint32 for consistency with
>>>> xcnt, and remove the two assertions that 924bcf4 has introduced. I
>>>> could get a patch quickly done FWIW.
>>>
>>> (uint32) +1
>>
>> Attached is the patch. This has finished by being far simpler than
>> what I thought first.
>
> I'm just going to remove the useless assertion for now. What you're
> proposing here may (or may not) be worth doing, but it carries a
> non-zero risk of breaking something somewhere, if anyone is relying on
> the signed-ness of that type. Removing the assertion is definitely
> safe.

Fine for me. That's indeed possible for an extension.
--
Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2015-05-13 16:04:01 Re: a few thoughts on the schedule
Previous Message Andres Freund 2015-05-13 15:58:02 Re: Triaging the remaining open commitfest items