File tree Expand file tree Collapse file tree 5 files changed +272
-275
lines changed
Expand file tree Collapse file tree 5 files changed +272
-275
lines changed Original file line number Diff line number Diff line change 22create
33or replace function public .to_jsonb (jsonb) returns jsonb language sql immutable parallel SAFE strict as $function$ select $1 $function$;
44
5- create
6- or replace function public .ts_to_millis (ts timestamp without time zone ) returns bigint language sql immutable parallel SAFE as $function$
7- select extract(epoch from ts)::bigint * 1000
8- $function$;
9-
10- create
11- or replace function public .ts_to_millis (ts timestamp with time zone ) returns bigint language sql immutable parallel SAFE as $function$
12- select (extract(epoch from ts) * 1000 )::bigint
13- $function$;
5+ -- create
6+ -- or replace function public.ts_to_millis (ts timestamp without time zone) returns bigint language sql immutable parallel SAFE as $function$
7+ -- select extract(epoch from ts)::bigint * 1000
8+ -- $function$;
9+ --
10+ -- create
11+ -- or replace function public.ts_to_millis (ts timestamp with time zone) returns bigint language sql immutable parallel SAFE as $function$
12+ -- select (extract(epoch from ts) * 1000)::bigint
13+ -- $function$;
1414
1515create
1616or replace function public .millis_to_ts (millis bigint ) returns timestamp with time zone language sql immutable parallel SAFE as $function$
You can’t perform that action at this time.
0 commit comments