pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Brian McCane <bmccane@mccons.net>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: ALTER TABLE ... SET DEFAULT
Date: Fri, 12 Apr 2002 23:56:55 -0400
Message-ID: <13011.1018670215@sss.pgh.pa.us> (raw)
In-Reply-To: <20020412194103.R59745-100000@fw.mccons.net>
References: <20020412194103.R59745-100000@fw.mccons.net>

Brian McCane <bmccane@mccons.net> 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



view thread (8+ messages)

Message-ID: <13011.1018670215@sss.pgh.pa.us>
Permalink:  ../13011.1018670215@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13011.1018670215@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, bmccane@mccons.net
  Subject: Re: ALTER TABLE ... SET DEFAULT
  In-Reply-To: <13011.1018670215@sss.pgh.pa.us>
  References: <20020412194103.R59745-100000@fw.mccons.net> <13011.1018670215@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox