Re: permanent setting of config variables - Mailing list pgsql-general

From Laurenz Albe
Subject Re: permanent setting of config variables
Date
Msg-id d8935d2d3958d899755cb4402e98aff054c5effd.camel@cybertec.at
Whole thread Raw
In response to permanent setting of config variables  (Joao Miguel Ferreira <joao.miguel.c.ferreira@gmail.com>)
Responses Re: permanent setting of config variables
List pgsql-general
On Thu, 2021-02-18 at 09:09 +0000, Joao Miguel Ferreira wrote:
> I have a few PL/pgSQL functions that use queires like "SHOW company.product INTO _product_name" and "SHOW
company.clusterINTO _cluster_number".
 
> But these are failing because I don't know how to set those values on a permanent basis, or maybe on startup would
alsobe ok.
 
> I did read the "ALTER DATABASE " and the "set_config(...)" documentation and I experimented a bit with that but
withoutsucces.
 
> So my question would be: how to permanently set user specific config values that would become accessible to the "SHOW
...."SQL comand.
 

_product_name := current_setting('company.product');

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com




pgsql-general by date:

Previous
From: hubert depesz lubaczewski
Date:
Subject: Re: Slow index creation
Next
From: Luca Ferrari
Date:
Subject: when is pg_stat_archiver.stats_reset modified?