Re: PL/SQL & unset custom variable - Mailing list pgsql-general

From Tom Lane
Subject Re: PL/SQL & unset custom variable
Date
Msg-id 14470.1251915374@sss.pgh.pa.us
Whole thread Raw
In response to Re: PL/SQL & unset custom variable  (Gordon Ross <gr306@ucs.cam.ac.uk>)
Responses Re: PL/SQL & unset custom variable
List pgsql-general
Gordon Ross <gr306@ucs.cam.ac.uk> writes:
> Sorry, no joy :-(

> grails=> SELECT current_setting('phone.id');
> ERROR:  unrecognized configuration parameter "phone.id"

> grails=> SELECT coalesce(current_setting('phone.id'),'SYSTEM');
> ERROR:  unrecognized configuration parameter "phone.id"

You could use a SELECT from pg_settings to probe for the value
of the parameter without getting an error.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Subselect problem
Next
From: Tom Lane
Date:
Subject: Re: [Q] optmizing postgres for 'single client' / many small queries