1. 29 8月, 2012 7 次提交
  2. 28 8月, 2012 10 次提交
  3. 27 8月, 2012 6 次提交
    • B
      Have pgindent requre pg_bsd_indent version 1.2 now that a new version · e40bddb0
      Bruce Momjian 提交于
      has been created by adding #include <stdlib.h> to parse.c.
      
      per request from Kevin Grittner.
      e40bddb0
    • H
      Collect and use histograms of lower and upper bounds for range types. · 918eee0c
      Heikki Linnakangas 提交于
      This enables selectivity estimation of the <<, >>, &<, &> and && operators,
      as well as the normal inequality operators: <, <=, >=, >. "range @> element"
      is also supported, but the range-variant @> and <@ operators are not,
      because they cannot be sensibly estimated with lower and upper bound
      histograms alone. We would need to make some assumption about the lengths of
      the ranges for that. Alexander's patch included a separate histogram of
      lengths for that, but I left that out of the patch for simplicity. Hopefully
      that will be added as a followup patch.
      
      The fraction of empty ranges is also calculated and used in estimation.
      
      Alexander Korotkov, heavily modified by me.
      918eee0c
    • P
      pg_basebackup: Correct error message · 6bb0b08f
      Peter Eisentraut 提交于
      It still thought that the --xlog-method option argument could be
      empty, as in a previous version of this feature.
      6bb0b08f
    • B
      Update FreeBSD kernel configuration documentation. · 7a42dff4
      Bruce Momjian 提交于
      Brad Davis
      7a42dff4
    • T
      Fix up planner infrastructure to support LATERAL properly. · 9ff79b9d
      Tom Lane 提交于
      This patch takes care of a number of problems having to do with failure
      to choose valid join orders and incorrect handling of lateral references
      pulled up from subqueries.  Notable changes:
      
      * Add a LateralJoinInfo data structure similar to SpecialJoinInfo, to
      represent join ordering constraints created by lateral references.
      (I first considered extending the SpecialJoinInfo structure, but the
      semantics are different enough that a separate data structure seems
      better.)  Extend join_is_legal() and related functions to prevent trying
      to form unworkable joins, and to ensure that we will consider joins that
      satisfy lateral references even if the joins would be clauseless.
      
      * Fill in the infrastructure needed for the last few types of relation scan
      paths to support parameterization.  We'd have wanted this eventually
      anyway, but it is necessary now because a relation that gets pulled up out
      of a UNION ALL subquery may acquire a reltargetlist containing lateral
      references, meaning that its paths *have* to be parameterized whether or
      not we have any code that can push join quals down into the scan.
      
      * Compute data about lateral references early in query_planner(), and save
      in RelOptInfo nodes, to avoid repetitive calculations later.
      
      * Assorted corner-case bug fixes.
      
      There's probably still some bugs left, but this is a lot closer to being
      real than it was before.
      9ff79b9d
    • B
      Clarify documentation that primary key and unique constraints are copied · de87d470
      Bruce Momjian 提交于
      for CREATE TABLE LIKE ... INCLUDING INDEXES.
      
      Per report from david.sahagian@emc.com
      de87d470
  4. 26 8月, 2012 3 次提交
  5. 25 8月, 2012 3 次提交
    • P
      Some spelling adjustments in release notes · 7514208f
      Peter Eisentraut 提交于
      7514208f
    • P
      Normalize some British spellings · 8606e47e
      Peter Eisentraut 提交于
      8606e47e
    • T
      Fix issues with checks for unsupported transaction states in Hot Standby. · 7abaa6b9
      Tom Lane 提交于
      The GUC check hooks for transaction_read_only and transaction_isolation
      tried to check RecoveryInProgress(), so as to disallow setting read/write
      mode or serializable isolation level (respectively) in hot standby
      sessions.  However, GUC check hooks can be called in many situations where
      we're not connected to shared memory at all, resulting in a crash in
      RecoveryInProgress().  Among other cases, this results in EXEC_BACKEND
      builds crashing during child process start if default_transaction_isolation
      is serializable, as reported by Heikki Linnakangas.  Protect those calls
      by silently allowing any setting when not inside a transaction; which is
      okay anyway since these GUCs are always reset at start of transaction.
      
      Also, add a check to GetSerializableTransactionSnapshot() to complain
      if we are in hot standby.  We need that check despite the one in
      check_XactIsoLevel() because default_transaction_isolation could be
      serializable.  We don't want to complain any sooner than this in such
      cases, since that would prevent running transactions at all in such a
      state; but a transaction can be run, if SET TRANSACTION ISOLATION is done
      before setting a snapshot.  Per report some months ago from Robert Haas.
      
      Back-patch to 9.1, since these problems were introduced by the SSI patch.
      
      Kevin Grittner and Tom Lane, with ideas from Heikki Linnakangas
      7abaa6b9
  6. 24 8月, 2012 3 次提交
  7. 23 8月, 2012 8 次提交