1. 04 2月, 2014 2 次提交
  2. 03 2月, 2014 6 次提交
  3. 02 2月, 2014 8 次提交
    • F
      Add primary_slotname to recovery.conf.sample. · 0753bdb3
      Fujii Masao 提交于
      0753bdb3
    • F
      Fix typos in docs and comments. · 63be3b78
      Fujii Masao 提交于
      Thom Brown
      63be3b78
    • A
      Fix makefile syntax. · 9abed7d1
      Andrew Dunstan 提交于
      9abed7d1
    • T
      Fix some wide-character bugs in the text-search parser. · 082c0dfa
      Tom Lane 提交于
      In p_isdigit and other character class test functions generated by the
      p_iswhat macro, the code path for non-C locales with multibyte encodings
      contained a bogus pointer cast that would accidentally fail to malfunction
      if types wchar_t and wint_t have the same width.  Apparently that is true
      on most platforms, but not on recent Cygwin releases.  Remove the cast,
      as it seems completely unnecessary (I think it arose from a false analogy
      to the need to cast to unsigned char when dealing with the <ctype.h>
      functions).  Per bug #8970 from Marco Atzeri.
      
      In the same functions, the code path for C locale with a multibyte encoding
      simply ANDed each wide character with 0xFF before passing it to the
      corresponding <ctype.h> function.  This could result in false positive
      answers for some non-ASCII characters, so use a range test instead.
      Noted by me while investigating Marco's complaint.
      
      Also, remove some useless though not actually buggy maskings and casts
      in the hand-coded p_isalnum and p_isalpha functions, which evidently
      got tested a bit more carefully than the macro-generated functions.
      082c0dfa
    • A
      fix whitespace · c8158a2e
      Andrew Dunstan 提交于
      c8158a2e
    • T
      Fix some more bugs in signal handlers and process shutdown logic. · 214c7a4f
      Tom Lane 提交于
      WalSndKill was doing things exactly backwards: it should first clear
      MyWalSnd (to stop signal handlers from touching MyWalSnd->latch),
      then disown the latch, and only then mark the WalSnd struct unused by
      clearing its pid field.
      
      Also, WalRcvSigUsr1Handler and worker_spi_sighup failed to preserve
      errno, which is surely a requirement for any signal handler.
      
      Per discussion of recent buildfarm failures.  Back-patch as far
      as the relevant code exists.
      214c7a4f
    • A
      Don't use deprecated dllwrap on Cygwin. · 7e1531a4
      Andrew Dunstan 提交于
      The preferred method is to use "cc -shared", and this allows binaries
      to be rebased if required, unlike dllwrap.
      
      Backpatch to 9.0 where we have buildfarm coverage.
      
      There are still some issues with Cygwin, especially modern Cygwin, but
      this helps us get closer to good support.
      
      Marco Atzeri.
      7e1531a4
    • A
      Copy the libpq DLL to the bin directory on Mingw and Cygwin. · d587298b
      Andrew Dunstan 提交于
      This has long been done by the MSVC build system, and has caused
      confusion in the past when programs like psql have failed to start
      because they can't find the DLL. If it's in the same directory as it now
      will be they will find it.
      
      Backpatch to all live branches.
      d587298b
  4. 01 2月, 2014 18 次提交
  5. 31 1月, 2014 6 次提交
    • A
      Fix documented return type of json_array_elements_text. · e9afdf2f
      Andrew Dunstan 提交于
      Per gripe from hubert depesz lubaczewski.
      
      Also improve examples for this and json_array_elements so they match the
      example results.
      e9afdf2f
    • T
      Allow unrecognized encoding names in locales, as long as they're the same. · cd3e0071
      Tom Lane 提交于
      The buildfarm says commit 58274728 doesn't
      work so well on Windows.  This is because the encoding part of Windows
      locale names can be just a code page number, eg "1252", which we don't
      consider to be a valid encoding name.  Add a check to accept encoding
      parts that are case-insensitively string equal; this at least ensures
      that the new code doesn't reject any cases that the old code allowed.
      cd3e0071
    • B
      pgindent: preserve blank lines around #else/#endif · db98b313
      Bruce Momjian 提交于
      This requires a new version of pg_bsd_indent, version 1.3, to be
      downloaded.
      db98b313
    • T
      Be forgiving of variant spellings of locale names in pg_upgrade. · 58274728
      Tom Lane 提交于
      Even though the server tries to canonicalize stored locale names, the
      platform often doesn't cooperate, so it's entirely possible that one DB
      thinks its locale is, say, "en_US.UTF-8" while the other has "en_US.utf8".
      Rather than failing, we should try to allow this where it's clearly OK.
      
      There is already pretty robust encoding lookup in encnames.c, so make
      use of that to compare the encoding parts of the names.  The locale
      identifier parts are just compared case-insensitively, which we were
      already doing.  The major problem known to exist in the field is variant
      encoding-name spellings, so hopefully this will be Good Enough.  If not,
      we can try being even laxer.
      
      Pavel Raiskup, reviewed by Rushabh Lathia
      58274728
    • T
      Fix potential coredump on bad locale value in pg_upgrade. · 41e364ec
      Tom Lane 提交于
      Thinko in error report (and a typo in the message text, too).  We're
      failing anyway, but it would be good to print something useful first.
      Noted while reviewing a patch to make pg_upgrade's locale code laxer.
      41e364ec
    • R
      Add convenience functions pg_sleep_for and pg_sleep_until. · 760c770f
      Robert Haas 提交于
      Vik Fearing, reviewed by Pavel Stehule and myself
      760c770f