stddev returns 0 when the number of rows is one. I would have expected null to be returned in this case as the standard deviation is undefined when there is one row.
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных