Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aW1dR-0000JQ-PT for pgsql-sql@arkaria.postgresql.org; Wed, 17 Feb 2016 12:55:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aW1dR-0003tB-CA for pgsql-sql@arkaria.postgresql.org; Wed, 17 Feb 2016 12:55:13 +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) (envelope-from ) id 1aW1cS-0002kF-KS for pgsql-sql@postgresql.org; Wed, 17 Feb 2016 12:54:12 +0000 Received: from mbob.nabble.com ([162.253.133.15]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aW1cP-0001L3-Mn for pgsql-sql@postgresql.org; Wed, 17 Feb 2016 12:54:12 +0000 Received: from msam.nabble.com (unknown [162.253.133.85]) by mbob.nabble.com (Postfix) with ESMTP id E567720EB924 for ; Wed, 17 Feb 2016 04:47:29 -0800 (PST) Date: Wed, 17 Feb 2016 05:54:08 -0700 (MST) From: amulsul To: pgsql-sql@postgresql.org Message-ID: <1455713648886-5888012.post@n5.nabble.com> In-Reply-To: References: Subject: Re: refer function name by a variable in the function body MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.0 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org >raise info 'starting function compute_X as %' user_id || timeofday(); Use 'user' or 'current_user' instead of user_id, it will work. You've typo, comma is missing before user_id. Regards, Amul Sul -- View this message in context: http://postgresql.nabble.com/refer-function-name-by-a-variable-in-the-function-body-tp5887848p5888012.html Sent from the PostgreSQL - sql mailing list archive at Nabble.com. -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql