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

From: Jim Nasby <Jim(dot)Nasby(at)BlueTreble(dot)com>
To: Craig Ringer <craig(dot)ringer(at)2ndquadrant(dot)com>, Clifford Hammerschmidt <tanglebones(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: C based plugins, clocks, locks, and configuration variables
Date: 2016-11-08 14:27:57
Message-ID: 1992cc8b-eaed-5531-844f-ea71599e940c@BlueTreble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 11/3/16 7:14 PM, Craig Ringer wrote:
>> 1) getting microseconds (or nanoseconds) from UTC epoch in a plugin
>
> GetCurrentIntegerTimestamp()

Since you're serializing generation anyway you might want to just forgo
the timestamp completely. It's not like the values your generating are
globally unique anymore, or hard to guess.
--
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com
855-TREBLE2 (855-873-2532) mobile: 512-569-9461

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2016-11-08 14:33:34 Re: Add support for SRF and returning composites to pl/tcl
Previous Message Stephen Frost 2016-11-08 14:23:39 Re: Improving RLS planning