Re: 3 Parameters in pg_settings in CamelCase

From: Ian Lawrence Barwick <barwick(at)gmail(dot)com>
To: "William Sescu (Suva)" <william(dot)sescu(at)suva(dot)ch>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: 3 Parameters in pg_settings in CamelCase
Date: 2021-01-20 11:36:50
Message-ID: CAB8KJ=hDsqCfR+aMfzNyO3i+ARozKJF8DC=1XzoWeDL73vqcQw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

2021年1月20日(水) 17:56 William Sescu (Suva) <william(dot)sescu(at)suva(dot)ch>:

> Hello %
>
>
>
> Is there any particular reason why 3 parameters out of 326 (in PostgreSQL
> 12.4) are in CamelCase?
>
> At least when you query from pg_settings.
>
>
>
> (postgres(at)[local]:55000)[postgres]> select name from pg_settings order by
> name;
>
> name
>
> ----------------------------------------
>
> …
>
> …
>
> DateStyle
>
> IntervalStyle
>
> TimeZone
>
> …
>
> …
>
>
>
> All others are in lowercase. Even in the postgresql.conf these parameters
> are in lowercase.
>
>
>
> $ cat postgresql.conf | egrep -i '(datestyle|intervalstyle|timezone)'
>
> datestyle = 'iso, mdy'
>
> #intervalstyle = 'postgres'
>
> timezone = 'Europe/Zurich'
>

I think the simple answer is "because they've always been like that" (at
least since PostgreSQL 7.3 [*])
and no-one has cared enough to change them.

[*]
https://git.postgresql.org/pg/commitdiff/f0811a74b37427d7ee5eee56b00f7f2ea323d7d6

Regards

Ian Barwick

--
EnterpriseDB: https://www.enterprisedb.com

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Thomas Kellerer 2021-01-20 12:39:50 Re: Data Type to store Leading Zero(0)
Previous Message soumik.bhattacharjee 2021-01-20 11:32:13 RE: Data Type to store Leading Zero(0)