I just started learning PostgreSQL and I cannot figure out how does scaling operator work on geometric types.
For example select '((1, 1), (0, 0))'::box * '(2, 0)'::point; returns ((2,2),(0,0))
and select '((1, 1), (0, 0))'::box * '(0, 2)'::point; returns ((0,2),(-2,0))
so in both cases box gets scaled by the factor of 2 (for both axes), but the way box is moved makes no sense to me.
Official documentation only shows one example of usage of this operator and nothing about how it works.
If someone knows a better resource for learning PostgreSQL please share it.
Thanks in advance.