mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
Story#113066359 - round is slower rather than casting to int
This commit is contained in:
parent
80e0097c4e
commit
63d78501ca
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ namespace :zonefile do
|
||||||
exclude_filter := '%.%.' || i_origin;
|
exclude_filter := '%.%.' || i_origin;
|
||||||
END IF;
|
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
|
-- zonefile header
|
||||||
SELECT concat(
|
SELECT concat(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue