pgsql: Restore fullname[] contents before falling through in pg_open_tz

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Restore fullname[] contents before falling through in pg_open_tz
Date: 2017-05-07 15:35:30
Message-ID: E1d7ODa-0007E3-7j@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Restore fullname[] contents before falling through in pg_open_tzfile().

Fix oversight in commit af2c5aa88: if the shortcut open() doesn't work,
we need to reset fullname[] to be just the name of the toplevel tzdata
directory before we fall through into the pre-existing code. This failed
to be exposed in my (tgl's) testing because the fall-through path is
actually never taken under normal circumstances.

David Rowley, per report from Amit Kapila

Discussion: https://postgr.es/m/CAA4eK1LC7CaNhRAQ__C3ht1JVrPzaAXXhEJRnR5L6bfYHiLmWw@mail.gmail.com

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/5042e9492b17f6f4029bb1aca7c1c0b8247c8c95

Modified Files
--------------
src/timezone/pgtz.c | 1 +
1 file changed, 1 insertion(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2017-05-07 15:58:01 pgsql: Install the "posixrules" timezone link in MSVC builds.
Previous Message Tom Lane 2017-05-07 15:17:08 Re: pgsql: Improve performance of timezone loading, especially pg_timezone_