News for hackers. Stuff that matters.
Re:Against SQL by Twisell on Saturday July 10, 2021 @05:10AM (#27792168)
Maybe I didn't get your point correctly but this seem actually doable in PostgreSQL.

You could create a custom type based on jsonb type with a trigger to enforce the types inside the jsonb. You could as well write some functions to ease manipulation of such custom type.

There is no out of the box light syntax to do that right now but this could be implemented in a future update/extension. Just look a the complex and successfully implemented geodata types brought in by the PostGis extension.

There are no comments on this comment yet.