On Wed, Mar 18, 2015 at 3:13 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote: > > Fabrízio de Royes Mello <fabriziomello@gmail.com> writes: > > Just one last doubt. Do we expose a new function called "current_database" > > like "current_catalog", "current_user", ... ? > > There already is one. But that would have nothing to do with the proposed > patch anyway, because the bits of syntax in question are not expressions > and you should not try to turn them into things that would call functions. >