Re: Looping through string constants

Поиск
Список
Период
Сортировка
От Sam Mason
Тема Re: Looping through string constants
Дата
Msg-id 20090813103338.GA5407@samason.me.uk
обсуждение исходный текст
Ответ на Re: Looping through string constants  (Scott Bailey <artacus@comcast.net>)
Ответы Re: Looping through string constants
Список pgsql-general
On Wed, Aug 12, 2009 at 08:45:58PM -0700, Scott Bailey wrote:
> CREATE OR REPLACE FUNCTION unnest(anyarray)
>   RETURNS SETOF anyelement AS
> $BODY$
> SELECT $1[i] FROM
>     generate_series(array_lower($1,1),
>                     array_upper($1,1)) i;
> $BODY$
>   LANGUAGE 'sql' IMMUTABLE STRICT

I'd recommend taking off the "STRICT" from this.  It will, counter
intuitively, slow things down when you're not expecting it.

--
  Sam  http://samason.me.uk/

В списке pgsql-general по дате отправления:

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: totally different plan when using partitions
Следующее
От: Sim Zacks
Дата:
Сообщение: multiple paramters in aggregate function