| From: | Vinayak <vinpokale(at)gmail(dot)com> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | CONCAT function |
| Date: | 2014-09-05 05:00:31 |
| Message-ID: | 1409893231867-5817884.post@n5.nabble.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jeff Janes | 2014-09-05 05:12:53 | Exists subquery in an update ignores the effects of the update itself |
| Previous Message | David G Johnston | 2014-09-05 00:23:28 | Re: how to pass tablename to a function |