-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
consider uuid to varchar cast #61
Comments
the alternative would be making a view of |
I'm not sure I fully understand. The issue is that the type of Is it just a question of whether or not you have to include |
Yes, the only purpose of the cast would be to make queries slightly less annoying to write. |
Is it preferable to simply update On a related note, do you use the |
I'm loathe to change the schema of the django-controlled tables, especially right now when we have to deal with the at-sea database integration from EXPORTS. wrt Summary views are handy to avoid having to construct complex queries on the client side, when we have a few that we'll want to do routinely. Adding them as custom SQL migrations doesn't break the ORM, so we can add them willy-nilly, as far as I'm concerned. |
https://dba.stackexchange.com/questions/177733/postgresql-custom-operator-uuid-to-varchar
if this wouldn't mess up the Django ORM, it would be really convenient for writing raw sql queries. In the stack overflow question they're going the opposite way than we would -- we would make an implicit cast from uuid to varchar so we can compare timeseries IDs without having to cast the uuids to varchar.
this would be a custom sql migration and would probably not break the ORM, but I'm not going to try it on the live server!
The text was updated successfully, but these errors were encountered: