> CREATE OR REPLACE FUNCTION words_shuffle(in_array text[]) > RETURNS text[] AS > $func$ > SELECT array_agg(x ORDER BY RANDOM()) FROM UNNEST(in_array) x; > $func$ LANGUAGE sql STABLE;
Hmm ... that's not really "stable", since it depends on random() which is volatile.
I was wondering that too, but assumed it is maybe STABLE because the function does not modify any tables.
Чтобы сделать работу с сайтом удобнее, мы используем cookie и аналитический сервис «Яндекс.Метрика». Продолжая пользоваться сайтом, вы соглашаетесь с их использованием.