Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id A772147510B for ; Fri, 12 Apr 2002 23:56:57 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g3D3utF13014; Fri, 12 Apr 2002 23:56:55 -0400 (EDT) To: Brian McCane Cc: pgsql-admin Subject: Re: ALTER TABLE ... SET DEFAULT In-reply-to: <20020412194103.R59745-100000@fw.mccons.net> References: <20020412194103.R59745-100000@fw.mccons.net> Comments: In-reply-to Brian McCane message dated "Fri, 12 Apr 2002 19:43:17 -0500" Date: Fri, 12 Apr 2002 23:56:55 -0400 Message-ID: <13011.1018670215@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200204/108 X-Sequence-Number: 3996 Brian McCane writes: > Okay, so if I create a function as 'iscachable', it assumes that the value > will never change, calls the function and places the value in as the > default? This doesn't make sense to me since the 'iscacheable' only works > inside of a transaction block. Um ... I already told you, that is *not* the meaning of 'isCachable'. 7.3 will split this term into 'isImmutable' and 'isStable', where the latter means approximately what you seem to expect. But the practical behavior of existing releases is that 'isCachable' means 'fixed forever given fixed input arguments'. If you don't like it, argue with the code. regards, tom lane