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