Обсуждение: pgsql: Consistently use named parameters in timezone code.

Поиск
Список
Период
Сортировка

pgsql: Consistently use named parameters in timezone code.

От
Peter Geoghegan
Дата:
Consistently use named parameters in timezone code.

Make our copy of the IANA timezone library use named parameters in
function declarations.  Also make sure that parameter names from each
function's declaration match corresponding definition parameter names.

This makes the timezone code follow Postgres coding standards.  The
value of having a consistent standard everywhere seems to outweigh the
cost of keeping the function declarations in sync with future IANA
releases.

Author: Peter Geoghegan <pg@bowt.ie>
Reviewed-By: David Rowley <dgrowleyml@gmail.com>
Discussion: https://postgr.es/m/CAH2-WznJt9CMM9KJTMjJh_zbL5hD9oX44qdJ4aqZtjFi-zA3Tg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c4f8e89fef3d4cd8b0791637667fd984d6f38fb2

Modified Files
--------------
src/timezone/localtime.c | 16 +++++++++-------
src/timezone/pgtz.c      |  8 ++++----
src/timezone/strftime.c  | 10 +++++-----
src/timezone/zic.c       | 34 ++++++++++++++++++----------------
4 files changed, 36 insertions(+), 32 deletions(-)