Re: 3 Parameters in pg_settings in CamelCase

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





2021年1月20日(水) 17:56 William Sescu (Suva) <william.sescu@xxxxxxx>:

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@[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

--

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux