Re: Server locale? - Mailing list pgsql-general

From Tom Lane
Subject Re: Server locale?
Date
Msg-id 27575.1034258818@sss.pgh.pa.us
Whole thread Raw
In response to Re: Server locale?  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-general
Martijn van Oosterhout <kleptog@svana.org> writes:
>> Added to TODO:
>>
>> o Allow SHOW of non-modifiable variables, like pg_controldata

> Ok, I'm looking at guc.c right now and is there any reason why you couldn't
> just add a PGC_READONLY that throws an error when you try to change it. If
> this is the case I'd be willing to give it a shot.

I was thinking of adding a GUC_READONLY bit to the config struct's flags
word, instead.  A PGC_ value that doesn't correspond to any possible
SetConfig context seems a little off key, somehow.  But it might be
worth adding a PGC_INITDB value to GucContext also ... otherwise there's
no good value to put in the context field for these variables.

Possibly Peter will have a different thought about how it should be
done.

            regards, tom lane

pgsql-general by date:

Previous
From: Adam Witney
Date:
Subject: Re: pg_restore error
Next
From: Joe Conway
Date:
Subject: Re: [BUGS] user name lost from dictionary