1. 21 5月, 2017 1 次提交
  2. 20 5月, 2017 11 次提交
  3. 19 5月, 2017 4 次提交
  4. 18 5月, 2017 12 次提交
  5. 17 5月, 2017 8 次提交
    • P
      Check relkind of tables in CREATE/ALTER SUBSCRIPTION · 944dc0f9
      Peter Eisentraut 提交于
      We used to only check for a supported relkind on the subscriber during
      replication, which is needed to ensure that the setup is valid and we
      don't crash.  But it's also useful to tell the user immediately when
      CREATE or ALTER SUBSCRIPTION is executed that the relation being added
      to the subscription is not of a supported relkind.
      
      Author: Petr Jelinek <petr.jelinek@2ndquadrant.com>
      Reported-by: Ntushar <tushar.ahuja@enterprisedb.com>
      944dc0f9
    • P
      0fbfb65d
    • T
      Preventive maintenance in advance of pgindent run. · c079673d
      Tom Lane 提交于
      Reformat various places in which pgindent will make a mess, and
      fix a few small violations of coding style that I happened to notice
      while perusing the diffs from a pgindent dry run.
      
      There is one actual bug fix here: the need-to-enlarge-the-buffer code
      path in icu_convert_case was obviously broken.  Perhaps it's unreachable
      in our usage?  Or maybe this is just sadly undertested.
      c079673d
    • T
      Fix leakage of memory context header in find_all_inheritors(). · ddd24358
      Tom Lane 提交于
      Commit 827d6f97 contained the same misunderstanding of hash_create's API
      as commit 090010f2.  As in 5d00b764, remove the unnecessary layer of
      memory context.  (This bug is less significant than the other one, since
      the extra context would be under a relatively short-lived context, but
      it's still a bug.)
      ddd24358
    • K
      Revert "Add a test for transition table usage in FOR EACH ROW trigger." · a19ea9c6
      Kevin Grittner 提交于
      This reverts commit 4a03f935.
      a19ea9c6
    • K
      4a03f935
    • T
      Try to ensure that stats collector's receive buffer size is at least 100KB. · 8b0b6303
      Tom Lane 提交于
      Since commit 4e37b3e1, buildfarm member frogmouth has been failing
      occasionally with symptoms indicating that some expected stats data is
      getting dropped.  The reason that that commit changed the behavior seems
      probably to be that more data is getting shoved at the collector in a short
      span of time.  In current sources, the stats test's first session sends
      about 9KB of data while exiting, which is probably the same as what was
      sent just before wait_for_stats() in the previous test design.  But now,
      the test's second session is starting up concurrently, and it sends another
      2KB (presumably reflecting its initial catalog accesses).  Since frogmouth
      is running on Windows XP, which reputedly has a default socket receive
      buffer size of only 8KB, it is not very surprising if this has put us over
      the threshold where the receive buffer can overflow and drop messages.
      
      The same mechanism could very easily explain the intermittent stats test
      failures we've been seeing for years, since background processes such
      as the bgwriter will sometimes send data concurrently with all this, and
      could thus cause occasional buffer overflows.
      
      Hence, insert some code into pgstat_init() to increase the stats socket's
      receive buffer size to 100KB if it's less than that.  (On failure, emit a
      LOG message, but keep going.)  Modern systems seem to have default sizes
      in the range of 100KB-250KB, but older platforms don't.  I couldn't find
      any platforms that wouldn't accept 100KB, so in theory this won't cause
      any portability problems.
      
      If this is successful at reducing the buildfarm failure rate in HEAD,
      we should back-patch it, because it's certain that similar buffer overflows
      happen in the field on platforms with small buffer sizes.  Going forward,
      there might be an argument for trying to increase the buffer size even
      more, but let's take a baby step first.
      
      Discussion: https://postgr.es/m/22173.1494788088@sss.pgh.pa.us
      8b0b6303
    • R
  6. 16 5月, 2017 4 次提交