Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Personally I like the idea of allowing the user to create a cast:

https://www.postgresql.org/docs/current/sql-createcast.html

There are some weird permissions issues to work out IIRC, but this allows the user to specify how the json should be marshalled, and then can be implicitly or explicitly used by any sql statements. This is how PostgREST solves this problem, and I currently have a few custom casts created for range and multirange datatypes through my PostgREST server.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: