Before I buy something better than Shared Database on Heroku I would like to know if I will be able to , let’s say create custom CASTS in postgresql?
For this I need to log in as an user with admin privileges (data-type owner, for example bigint owner).
Before I buy something better than Shared Database on Heroku I would like to
Share
We don’t give you a superuser role on any of our databases for the security and stability of all our customers.
While the provided role does own the schema and database you connect to, it does not currently also own types. This is what I’d call an obscure use case though, as the alternative of implicit casting is clearer and achieves the same purpose.
There are other situations where superuser privileges is ideal, for example the ability to run pg_cancel_backend or install extension. We’ve solved both of these cases via a backport to the 9.0 lineup (available by default in 9.1) and extension whitelisting respectively.
EDIT – an example comparing text types to integers.
For implicit casting, can specify the type using
some_value::new_typenotation:some_string::integer: