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

Поиск
Список
Период
Сортировка
От Jim Nasby
Тема Re: C based plugins, clocks, locks, and configuration variables
Дата
Msg-id 1992cc8b-eaed-5531-844f-ea71599e940c@BlueTreble.com
обсуждение исходный текст
Ответ на Re: C based plugins, clocks, locks, and configuration variables  (Craig Ringer <craig.ringer@2ndquadrant.com>)
Ответы Re: C based plugins, clocks, locks, and configuration variables  (Clifford Hammerschmidt <tanglebones@gmail.com>)
Список 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



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: Improving RLS planning
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Add support for SRF and returning composites to pl/tcl