Re: C based plugins, clocks, locks, and configuration variables

From: Craig Ringer <craig(dot)ringer(at)2ndquadrant(dot)com>
To: Clifford Hammerschmidt <tanglebones(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, Jim Nasby <Jim(dot)Nasby(at)bluetreble(dot)com>
Subject: Re: C based plugins, clocks, locks, and configuration variables
Date: 2016-11-08 22:58:26
Message-ID: CAMsr+YEmMk4V39OqEfkGg9U6iqQxDrwFiv7AH-Ed2+kvj9oBVQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 9 Nov. 2016 02:48, "Clifford Hammerschmidt" <tanglebones(at)gmail(dot)com>
wrote:
>
> Looking closer at the bit math, I screwed it up.... it should be 64 bits
time, 6 bit uuid version, 8 node, 8 seq, and the rest random ... which is
42 bits of random. I'll find the code in a bit.

Huh, so that's what you are doing.

I just added the same thing to the 9.6 BDR development tree last week,
though using 64-bit values, based on a draft Petr wrote. Feel free to take
a look. bdr-plugin/dev-bdr96 branch in 2ndQuadrant/bdr github repo. The
main file is seq2.c .

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2016-11-08 23:18:01 Re: pg_dump, pg_dumpall and data durability
Previous Message Craig Ringer 2016-11-08 22:54:03 Re: WIP: About CMake v2