CONCAT function

Поиск
Список
Период
Сортировка
От Vinayak
Тема CONCAT function
Дата
Msg-id 1409893231867-5817884.post@n5.nabble.com
обсуждение исходный текст
Ответы Re: CONCAT function  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Hello,

The pg_catalog.concat() is defined as STABLE function.

As per my understanding a STABLE function cannot modify the database and is
guaranteed to return the same results given the same arguments for all rows
within a single statement.
Example:
current_timestamp family of functions qualify as stable, since their values
do not change within a transaction.

An IMMUTABLE function cannot modify the database and is guaranteed to return
the same results given the same arguments forever.

why was STABLE preferred for concat() over IMMUTABLE?




-----
Regards,
Vinayak,

--
View this message in context: http://postgresql.1045698.n5.nabble.com/CONCAT-function-tp5817884.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


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

Предыдущее
От: alecinvan
Дата:
Сообщение: how to pass tablename to a function
Следующее
От: Jeff Janes
Дата:
Сообщение: Exists subquery in an update ignores the effects of the update itself