Y
Hacker News
new
|
ask
|
show
|
jobs
by
emptysea
107 days ago
In Postgres you can define custom operators via `create operator`[0]
-- infix select a <!!!> b; -- prefix select <||> a;
A lot of custom types end up using this [1].
select @-@ '[(0,0),(1,0),(1,1)]'::path; -- 2
[0]
https://www.postgresql.org/docs/current/sql-createoperator.h...
[1]
https://www.postgresql.org/docs/current/functions-geometry.h...