Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd some missing common functions #37
Comments
sgrif
added
enhancement
accepted
labels
Dec 1, 2015
sgrif
closed this
in
#144
Jan 30, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sgrif commentedDec 1, 2015
We have
max. We don't havemin. Oravg,sum, etc. We should add these. They should not use thesql_function!macro, as they need to accept more than one argument type.minshould have the same bounds asmax. Others might need new bounds. I'm fine with just naming the trait something likeCanBePassedToAvgor something, if there's not a good generic name. If you ever need to find the types which can be passed to a function in postgres, just open up psql and run this query: