Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hfbFF-0004Wj-0C for pgsql-general@arkaria.postgresql.org; Tue, 25 Jun 2019 02:31:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hfbFD-0002nt-KG for pgsql-general@arkaria.postgresql.org; Tue, 25 Jun 2019 02:31:39 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hfbFD-0002nm-14 for pgsql-general@lists.postgresql.org; Tue, 25 Jun 2019 02:31:39 +0000 Received: from mail-ot1-x329.google.com ([2607:f8b0:4864:20::329]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hfbF4-000097-Mc for pgsql-general@postgresql.org; Tue, 25 Jun 2019 02:31:37 +0000 Received: by mail-ot1-x329.google.com with SMTP id z23so15625224ote.13 for ; Mon, 24 Jun 2019 19:31:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lucee.org; s=google; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=A+39iukN3w4P+7YqqmRl57VV66Z/1deAFE1OWdApV00=; b=fXjUMiH7zO4B5Tke+DxxEGu84tUmcIlrp4EPH7BzgeQI8J8ZULTB2WB7eayOSoBJbM mL3dUiHy8lUwhD/IH2U++nwNtID7G4rnlqJ9M4yEDmQ97YgmeWeTwbHK/lDHC+xbHnKi YkMuQVaUP5xN/d17iU6LatLTHOe2jLN+eFqTqQfl6c4xcW+01oyb3RI/79gERqoe1MLc hofOxXCjzDpd2HTW3YCpNeSTWC4PYml/mNAR5dQJWYo+Vdc377Nd6Qz2vP9YbkIIcSU5 mZF8TVxmeiUUU/5054qzdvzdMKqgS7mbsXjl8arevZCt8B+c3bIkMlxG5wD3MuMPvNt1 PHOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=A+39iukN3w4P+7YqqmRl57VV66Z/1deAFE1OWdApV00=; b=dxzDC72C2dKkmI8sikimMXG43Ydq8UgfFzBILTCFA7HLQoshDEucWl4lIEyOI5ISYy MI5SwMHUKTAA5+wR9b2h6RcijzSwlLY9MVi4/m3eteRTE4O35YgDxzuM2ZGMExo2yFVX 1/JOpkpboXD669SbWkwBrqfgzudhCmfymKA1qZop/XAEsBDb6GIV+9QheBETYTlccYPh Ob+UnvOcTXHfSNk8VmYcsI0ZXsk0M3gbeWALq5LgTxoCCh2/28+BRyQ+uO5eLPhhLMtj GpPxQszkhTVQ6+b7KfDjxK/+ARVqnrmygm9IdtmeG/omcYCGrtFMMSI4Yr5n/q9yFa+w fKFg== X-Gm-Message-State: APjAAAUY4zit+BPXPGUBlS4r1GsvegM/khwbeqMUmxW0Hk3iU+W113yV 2+X/NmngKXE7FVk8QA/B5N0QuZghukM= X-Google-Smtp-Source: APXvYqwWpM5RO/cVjMZWhRzTVrlIhmglNBgXGrYO9XsnrBRUuCl3z0iEoI/TQKOBbZpoh9nfno20qg== X-Received: by 2002:a9d:5787:: with SMTP id q7mr5512333oth.75.1561429888821; Mon, 24 Jun 2019 19:31:28 -0700 (PDT) Received: from ?IPv6:2600:1700:4000:8120:f44a:713f:e113:9eca? ([2600:1700:4000:8120:f44a:713f:e113:9eca]) by smtp.googlemail.com with ESMTPSA id b23sm4653088otl.75.2019.06.24.19.31.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Jun 2019 19:31:28 -0700 (PDT) To: pgsql-general From: "Igal @ Lucee.org" Subject: Function Volatility Stable vs Immutable Message-ID: <8a4ed1a2-74de-0fa3-e2a2-7b68b60b0a4f@lucee.org> Date: Mon, 24 Jun 2019 19:31:27 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk If a function select data from a table, and the rows in the table may change, would that function qualify for Immutable or does it have to be Stable?  I'm asking because according to the docs [1]: "An IMMUTABLE function cannot modify the database and is guaranteed to return the same results given the same arguments forever". So for the same arguments, the result would change only if the data in the table changes.  Does that mean that it violates the "forever" clause and therefore can be only marked as Stable and not Immutable? Thanks, Igal