Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Oct 12, 2012
  1. @bmomjian

    In our source code, make a copy of getopt's 'optarg' string arguments,

    bmomjian committed
    rather than just storing a pointer.
Commits on Sep 19, 2012
  1. Update time zone data files to tzdata release 2012f.

    Tom Lane committed
    DST law changes in Fiji.
Commits on Aug 14, 2012
  1. Update time zone data files to tzdata release 2012e.

    Tom Lane committed
    DST law changes in Morocco; Tokelau has relocated to the other side of
    the International Date Line; and apparently Olson had Tokelau's GMT
    offset wrong by an hour even before that.
    There are also a large number of non-significant changes in this update.
    Upstream took the opportunity to remove trailing whitespace, and the
    SCCS-style version numbers on the individual files are gone too.
Commits on Jun 10, 2012
  1. @bmomjian
Commits on May 31, 2012
  1. Update time zone data files to tzdata release 2012c.

    Tom Lane committed
    DST law changes in Antarctica, Armenia, Chile, Cuba, Falkland Islands,
    Gaza, Haiti, Hebron, Morocco, Syria, Tokelau Islands.
    Historical corrections for Canada.
Commits on Apr 25, 2012
  1. Fix edge-case behavior of pg_next_dst_boundary().

    Tom Lane committed
    Due to rather sloppy thinking (on my part, I'm afraid) about the
    appropriate behavior for boundary conditions, pg_next_dst_boundary() gave
    undefined, platform-dependent results when the input time is exactly the
    last recorded DST transition time for the specified time zone, as a result
    of fetching values one past the end of its data arrays.
    Change its specification to be that it always finds the next DST boundary
    *after* the input time, and adjust code to match that.  The sole existing
    caller, DetermineTimeZoneOffset, doesn't actually care about this
    distinction, since it always uses a probe time earlier than the instant
    that it does care about.  So it seemed best to me to change the API to make
    the result=1 and result=0 cases more consistent, specifically to ensure
    that the "before" outputs always describe the state at the given time,
    rather than hacking the code to obey the previous API comment exactly.
    Per bug #6605 from Sergey Burladyan.  Back-patch to all supported versions.
Commits on Apr 24, 2012
  1. Lots of doc corrections.

    Robert Haas committed
    Josh Kupershmidt
Commits on Jan 1, 2012
  1. @bmomjian
Commits on Nov 30, 2011
  1. Update time zone data files to tzdata release 2011n.

    Tom Lane committed
    DST law changes in Brazil, Cuba, Fiji, Palestine, Russia, Samoa.
    Historical corrections for Alaska and British East Africa.
Commits on Oct 28, 2011
  1. Update docs to point to the timezone library's new home at IANA.

    Tom Lane committed
    The recent unpleasantness with copyrights has accelerated a move that
    was already in planning.
Commits on Sep 9, 2011
  1. Simplify handling of the timezone GUC by making initdb choose the def…

    Tom Lane committed
    We were doing some amazingly complicated things in order to avoid running
    the very expensive identify_system_timezone() procedure during GUC
    initialization.  But there is an obvious fix for that, which is to do it
    once during initdb and have initdb install the system-specific default into
    postgresql.conf, as it already does for most other GUC variables that need
    system-environment-dependent defaults.  This means that the timezone (and
    log_timezone) settings no longer have any magic behavior in the server.
    Per discussion.
Commits on Sep 5, 2011
  1. Update time zone data files to tzdata release 2011i.

    Tom Lane committed
    DST law changes in Canada, Egypt, Russia, Samoa, South Sudan.
Commits on Aug 23, 2011
  1. @petere

    Use consistent format for reporting GetLastError()

    petere committed
    Use something like "error code %lu" for reporting GetLastError()
    values on Windows.  Previously, a mix of different wordings and
    formats were in use.
Commits on Jul 26, 2011
  1. @petere

    Replace printf format %i by %d

    petere committed
    They are identical, but the overwhelming majority of the code uses %d,
    so standardize on that.
Commits on Jun 9, 2011
  1. @bmomjian
Commits on May 11, 2011
  1. Split PGC_S_DEFAULT into two values, for true boot_val vs computed de…

    Tom Lane committed
    Failure to distinguish these cases is the real cause behind the recent
    reports of Windows builds crashing on 'infinity'::timestamp, which was
    directly due to failure to establish a value of timezone_abbreviations
    in postmaster child processes.  The postmaster had the desired value,
    but write_one_nondefault_variable() didn't transmit it to backends.
    To fix that, invent a new value PGC_S_DYNAMIC_DEFAULT, and be sure to use
    that or PGC_S_ENV_VAR (as appropriate) for "default" settings that are
    computed during initialization.  (We need both because there's at least
    one variable that could receive a value from either source.)
    This commit also fixes ProcessConfigFile's failure to restore the correct
    default value for certain GUC variables if they are set in postgresql.conf
    and then removed/commented out of the file.  We have to recompute and
    reinstall the value for any GUC variable that could have received a value
    from PGC_S_DYNAMIC_DEFAULT or PGC_S_ENV_VAR sources, and there were a
    number of oversights.  (That whole thing is a crock that needs to be
    redesigned, but not today.)
    However, I intentionally didn't make it work "exactly right" for the cases
    of timezone and log_timezone.  The exactly right behavior would involve
    running select_default_timezone, which we'd have to do independently in
    each postgres process, causing the whole database to become entirely
    unresponsive for as much as several seconds.  That didn't seem like a good
    idea, especially since the variable's removal from postgresql.conf might be
    just an accidental edit.  Instead the behavior is to adopt the previously
    active setting as if it were default.
    Note that this patch creates an ABI break for extensions that use any of
    the PGC_S_XXX constants; they'll need to be recompiled.
Commits on Apr 25, 2011
  1. @adunstan

    Assorted minor changes to silence Windows compiler warnings.

    adunstan committed
    Mostly to do with macro redefinitions or object signedness.
Commits on Apr 13, 2011
  1. Update time zone data files to tzdata release 2011f.

    Tom Lane committed
    DST law changes in Chile, Cuba, Falkland Islands, Morocco, Samoa, Turkey.
    Historical corrections for South Australia, Alaska, Hawaii.
Commits on Apr 7, 2011
  1. Revise the API for GUC variable assign hooks.

    Tom Lane committed
    The previous functions of assign hooks are now split between check hooks
    and assign hooks, where the former can fail but the latter shouldn't.
    Aside from being conceptually clearer, this approach exposes the
    "canonicalized" form of the variable value to guc.c without having to do
    an actual assignment.  And that lets us fix the problem recently noted by
    Bernd Helmle that the auto-tune patch for wal_buffers resulted in bogus
    log messages about "parameter "wal_buffers" cannot be changed without
    restarting the server".  There may be some speed advantage too, because
    this design lets hook functions avoid re-parsing variable values when
    restoring a previous state after a rollback (they can store a pre-parsed
    representation of the value instead).  This patch also resolves a
    longstanding annoyance about custom error messages from variable assign
    hooks: they should modify, not appear separately from, guc.c's own message
    about "invalid parameter value".
Commits on Jan 1, 2011
  1. @bmomjian
Commits on Dec 13, 2010
  1. Update time zone data files to tzdata release 2010o: DST law changes in

    Tom Lane committed
    Fiji and Samoa.  Historical corrections for Hong Kong.
Commits on Nov 12, 2010
  1. @petere

    Improved parallel make support

    petere committed
    Replace for loops in makefiles with proper dependencies.  Parallel
    make can now span across directories.  Also, make -k and make -q work
    GNU make 3.80 or newer is now required.
Commits on Oct 29, 2010
  1. Fix comparisons of pointers with zero to compare with NULL instead.

    Tom Lane committed
    Per C standard, these are semantically the same thing; but saying NULL
    when you mean NULL is good for readability.
    Marti Raudsepp, per results of INRIA's Coccinelle.
Commits on Sep 22, 2010
  1. @mhagander
Commits on Sep 20, 2010
  1. @mhagander
Commits on Aug 26, 2010
  1. Update time zone data files to tzdata release 2010l: DST law changes in

    Tom Lane committed
    Egypt and Palestine.  Added new names for two Micronesian timezones:
    Pacific/Chuuk is now preferred over Pacific/Truk (and the preferred
    abbreviation is CHUT not TRUT) and Pacific/Pohnpei is preferred over
    Pacific/Ponape.  Historical corrections for Finland.
Commits on Jul 6, 2010
  1. @bmomjian
Commits on Jul 5, 2010
  1. Split the LDFLAGS make variable into two parts: LDFLAGS is now used for

    Tom Lane committed
    linking both executables and shared libraries, and we add on LDFLAGS_EX when
    linking executables or LDFLAGS_SL when linking shared libraries.  This
    provides a significantly cleaner way of dealing with link-time switches than
    the former behavior.  Also, make sure that the various platform-specific %.o rules incorporate LDFLAGS and LDFLAGS_SL; most of them missed that
    before.  (I did not add these variables for the platforms that invoke $(LD)
    directly, however.  It's not clear if we can do that safely, since for the
    most part we assume these variables use CC command-line syntax.)
    Per gripe from Aaron Swenson and subsequent investigation.
Commits on May 20, 2010
  1. @mhagander

    Change the "N. Central Asia Standard Time" timezone to map to

    mhagander committed
    Asia/Novosibirsk on Windows.
    Microsoft changed the behaviour of this zone in the timezone update
    from KB976098. The zones differ in handling of DST, and the old
    zone was just removed.
    Noted by Dmitry Funk
Commits on May 11, 2010
  1. Update time zone data files to tzdata release 2010j: DST law changes in

    Tom Lane committed
    Argentina, Australian Antarctic, Bangladesh, Mexico, Morocco, Pakistan,
    Palestine, Russia, Syria, Tunisia.  Historical corrections for Taiwan.
  2. Add PKST to the default set of timezone abbreviations.

    Tom Lane committed
    Per discussion, if we have PKT in there then PKST should be too.
    Also, fix mistaken claim that these abbrevs are not known to zic.
Commits on Apr 15, 2010
  1. Improve message style for messages associated with not being able to

    Tom Lane committed
    identify the system time zone setting.  Per recent discussion.
  2. @mhagander

    Add script to enumerate the timezones in the Windows registry and com…

    mhagander committed
    it with the list we have in pgtz.c, showing any differences.
Commits on Apr 9, 2010
  1. @mhagander

    Clean up inconsistent commas

    mhagander committed
  2. @mhagander

    Update list of Windows timezones we try to match localized names against

    mhagander committed
    to one that's up to date with Windows 2003R2.
Something went wrong with that request. Please try again.