Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bX7Kj-0003ds-5f for pgsql-bugs@arkaria.postgresql.org; Tue, 09 Aug 2016 13:44:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bX7Ki-0004Zs-Jn for pgsql-bugs@arkaria.postgresql.org; Tue, 09 Aug 2016 13:44:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bX7K4-0003rt-WF for pgsql-bugs@postgresql.org; Tue, 09 Aug 2016 13:44:01 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bX7Jy-0005vQ-0p for pgsql-bugs@postgresql.org; Tue, 09 Aug 2016 13:44:00 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u79Dhord020204; Tue, 9 Aug 2016 09:43:50 -0400 From: Tom Lane To: "David G. Johnston" cc: Peter Eisentraut , "pgsql-bugs@postgresql.org" Subject: Re: 9.5 Create Function Set From Current taken at creation time? In-reply-to: References: <8cee0868-4d5c-beab-ea5d-82b8158d6e6b@2ndquadrant.com> Comments: In-reply-to "David G. Johnston" message dated "Tue, 09 Aug 2016 09:27:42 -0400" Date: Tue, 09 Aug 2016 09:43:50 -0400 Message-ID: <20203.1470750230@sss.pgh.pa.us> X-Pg-Spam-Score: -2.3 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org "David G. Johnston" writes: > Can we change the second sentence in the above quote to something like:​ > SET FROM CURRENT is a convenience expression to capture the result of > current_setting('setting name') at the time of the function's creation. [if > more than just convenience an example of when this is useful would be nice]. "Convenience" normally means that there's some other way to get the same result. I do not know of one, and I doubt we'd have introduced the feature if there was. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs