Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 38954

For questions about timestamp data types and/or recording a particular point in time.

3 votes
1 answer
42 views

Using Postgres param in a function

One thing I would like to do is change a timestamp to a double via a function such as: create function tz_to_double(a timestamp) returns DOUBLE PRECISION as $$ SELECT EXTRACT(EPOCH FROM TIMESTAMP a … It errors out like so: ERROR: syntax error at or near "a" LINE 2: SELECT EXTRACT(EPOCH FROM TIMESTAMP a); Would it be possible to create this function / use this as a param? …
ovatsug25's user avatar
  • 133