Re: refer function name by a variable in the function body

From: amulsul <sul_amul(at)yahoo(dot)co(dot)in>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: refer function name by a variable in the function body
Date: 2016-02-17 12:54:08
Message-ID: 1455713648886-5888012.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

>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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Nikhil 2016-02-17 14:07:34 Re: Custom conflict handlers
Previous Message Daniel Westermann 2016-02-17 10:26:33 Question on memory management sysv/posix on Linux

Browse pgsql-sql by date

  From Date Subject
Next Message David Binney 2016-02-26 00:38:20 Query about foreign key details for php framework
Previous Message hubert depesz lubaczewski 2016-02-16 16:15:39 Re: [SQL] refer function name by a variable in the function body