postgres=# select smallest(VARIADIC ARRAY[1,2,3]);┌──────────┐│ smallest │╞══════════╡│ 1 │└──────────┘(1 row)That's very helpful and good to know. It's too bad that doesn't work with LEAST/GREATEST, which would eliminate the need for extra functions.I sent a patch to pgsql-hackares that allows VARIADIC argument for LEAST/GREATEST
postgres=# select smallest(VARIADIC ARRAY[1,2,3]);┌──────────┐│ smallest │╞══════════╡│ 1 │└──────────┘(1 row)That's very helpful and good to know. It's too bad that doesn't work with LEAST/GREATEST, which would eliminate the need for extra functions.
postgres=# select smallest(VARIADIC ARRAY[1,2,3]);┌──────────┐│ smallest │╞══════════╡│ 1 │└──────────┘(1 row)
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных