On Mon, Mar 28, 2016 at 10:09 PM, Tom Lane <t...@sss.pgh.pa.us> wrote: > Christian Ullrich <ch...@chrullrich.net> writes: >> * Tom Lane wrote: >>> Yeah. I've been staring at that for awhile, but it's not clear where >>> the problem is. There are a bunch of other SET TIME ZONE commands in >>> the regression tests, how is it that this trivial case fails on the >>> Windows critters? > >> zic aborts somewhere between writing Etc/UTC and UTC. > > Huh ... I would not have guessed that. Can you track down exactly > where it's failing?
It is failing when attempting to create the link for Pacific_new, and so the rest is not created at all. > We absorbed some new code in zic.c for creating subdirectories of the > target timezone directory, and said code seemed a bit odd to me, > but I supposed that the IANA guys had debugged it already. Maybe not. > Or maybe the problem is with some specific input file that gets > reached somewhere in that range? The issue is in dolink() visibly. The first time link() is called it fails on EEXIST (?), but there is no retry because the target link, US/Pacific-new is not a directory. But note that contrary to the previous version of the code, link() is not attempted again, symlink is called instead (HAVE_SYMLINK is actually missing here!) or an open/getc/close is done to do a copy of the file. With the WIP patch attached, I am still getting 4 warnings "symbolic link used because hard link failed", at least it fixes the issue. -- Michael
-- Sent via pgsql-hackers mailing list (email@example.com) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers