![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
the function is immutable but is executed 3 times ( one for each row). |
#2
| |||
| |||
|
|
On: Sunday, July 13, 2003 4:19 AM "Tom Lane" <tgl (AT) sss (DOT) pgh.pa.us> wrote: So? Sounds to me like it's working as intended. Well the documentation says: IMMUTABLE [...] If this option is given, any call of the function with all-constant arguments can be immediately replaced with the function value. |
|
Used as default value: # alter table t_a alter b set default test(3); NOTICE: test called ALTER TABLE #\d t_a Table "public.t_a" Column | Type | Modifiers --------+---------+----------- a | integer | b | integer | default 4 |
#3
| |||
| |||
|
|
"Mendola Gaetano" <mendola (AT) bigfoot (DOT) com> writes: #\d t_a Table "public.t_a" Column | Type | Modifiers --------+---------+----------- a | integer | b | integer | default 4 This is a bug, or at least a bad idea in hindsight, and 7.4 doesn't do it anymore. |
![]() |
| Thread Tools | |
| Display Modes | |
| |