From 63d78501ca87f4a18bb08873b103495e343d7c69 Mon Sep 17 00:00:00 2001 From: Vladimir Krylov Date: Thu, 18 Feb 2016 11:15:44 +0200 Subject: [PATCH] Story#113066359 - round is slower rather than casting to int --- lib/tasks/zonefile.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/zonefile.rake b/lib/tasks/zonefile.rake index 797d340f0..f402528be 100644 --- a/lib/tasks/zonefile.rake +++ b/lib/tasks/zonefile.rake @@ -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(