Story#113066359 - round is slower rather than casting to int

This commit is contained in:
Vladimir Krylov 2016-02-18 11:15:44 +02:00
parent 80e0097c4e
commit 63d78501ca

View file

@ -23,7 +23,7 @@ namespace :zonefile do
exclude_filter := '%.%.' || i_origin;
END IF;
SELECT ROUND(extract(epoch from now() at time zone 'utc')) INTO serial_num;
SELECT (extract(epoch from now() at time zone 'utc'))::int INTO serial_num;
-- zonefile header
SELECT concat(