Re: refer function name by a variable in the function body - Mailing list pgsql-sql

From amulsul
Subject Re: refer function name by a variable in the function body
Date
Msg-id 1455713648886-5888012.post@n5.nabble.com
Whole thread Raw
In response to refer function name by a variable in the function body  (Suresh Raja <suresh.rajaabc@gmail.com>)
List 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.



pgsql-sql by date:

Previous
From: Suresh Raja
Date:
Subject: refer function name by a variable in the function body
Next
From: David Binney
Date:
Subject: Query about foreign key details for php framework