1. 05 2月, 2016 13 次提交
  2. 04 2月, 2016 7 次提交
    • T
      In pg_dump, ensure that view triggers are processed after view rules. · 0ed707e9
      Tom Lane 提交于
      If a view is split into CREATE TABLE + CREATE RULE to break a circular
      dependency, then any triggers on the view must be dumped/reloaded after
      the CREATE RULE; else the backend may reject the CREATE TRIGGER because
      it's the wrong type of trigger for a plain table.  This works all right
      in plain dump/restore because of pg_dump's sorting heuristic that places
      triggers after rules.  However, when using parallel restore, the ordering
      must be enforced by a dependency --- and we didn't have one.
      
      Fixing this is a mere matter of adding an addObjectDependency() call,
      except that we need to be able to find all the triggers belonging to the
      view relation, and there was no easy way to do that.  Add fields to
      pg_dump's TableInfo struct to remember where the associated TriggerInfo
      struct(s) are.
      
      Per bug report from Dennis Kögel.  The failure can be exhibited at least
      as far back as 9.1, so back-patch to all supported branches.
      0ed707e9
    • R
      Extend sortsupport for text to more opclasses. · b47b4dbf
      Robert Haas 提交于
      Have varlena.c expose an interface that allows the char(n), bytea, and
      bpchar types to piggyback on a now-generalized SortSupport for text.
      This pushes a little more knowledge of the bpchar/char(n) type into
      varlena.c than might be preferred, but that seems like the approach
      that creates least friction.  Also speed things up for index builds
      that use text_pattern_ops or varchar_pattern_ops.
      
      This patch does quite a bit of renaming, but it seems likely to be
      worth it, so as to avoid future confusion about the fact that this code
      is now more generally used than the old names might have suggested.
      
      Peter Geoghegan, reviewed by Álvaro Herrera and Andreas Karlsson,
      with small tweaks by me.
      b47b4dbf
    • T
      Add hstore_to_jsonb() and hstore_to_jsonb_loose() to hstore documentation. · 24a26c9f
      Tom Lane 提交于
      These were never documented anywhere user-visible.  Tut tut.
      24a26c9f
    • R
      Allow parallel custom and foreign scans. · 69d34408
      Robert Haas 提交于
      This patch doesn't put the new infrastructure to use anywhere, and
      indeed it's not clear how it could ever be used for something like
      postgres_fdw which has to send an SQL query and wait for a reply,
      but there might be FDWs or custom scan providers that are CPU-bound,
      so let's give them a way to join club parallel.
      
      KaiGai Kohei, reviewed by me.
      69d34408
    • P
      doc: Fix stand-alone INSTALL file build · 25e44518
      Peter Eisentraut 提交于
      Commit 7d17e683 introduced an external
      link.
      25e44518
    • T
      Make hstore_to_jsonb_loose match hstore_to_json_loose on what's a number. · 41d2c081
      Tom Lane 提交于
      Commit e09996ff removed some ad-hoc code in hstore_to_json_loose
      that determined whether an hstore value string looked like a number,
      in favor of calling the JSON parser's is-it-a-number code.  However,
      it neglected the fact that the exact same code appeared in
      hstore_to_jsonb_loose.
      
      This is not a bug, exactly, because the requirements on the two functions
      are not the same: hstore_to_json_loose must accept only syntactically legal
      JSON numbers as numbers, or it will produce invalid JSON output, as per bug
      #12070 which spawned the prior commit.  But hstore_to_jsonb_loose could
      accept anything that numeric_in will eat, other than Inf and NaN.
      
      Nonetheless it seems surprising and arbitrary that the two functions don't
      use the same rules for what is a number versus what is a string; especially
      since they did use the same rules before the aforesaid commit.  For one
      thing, that means that doing hstore_to_json_loose and then casting to jsonb
      can produce results different from doing just hstore_to_jsonb_loose.
      
      Hence, change hstore_to_jsonb_loose's logic to match hstore_to_json_loose,
      ie, hstore values are treated as numbers when they match the JSON syntax
      for numbers.
      
      No back-patch, since this is more in the nature of a definitional change
      than a bug fix.
      41d2c081
    • R
      Code review for commit dc203dc3. · 52b63649
      Robert Haas 提交于
      Remove duplicate assignment.  This part by Ashutosh Bapat.
      
      Remove now-obsolete comment.  This part by me, although the pending
      join pushdown patch does something similar, and for the same reason:
      there's no reason to keep two lists of the things in the fdw_private
      structure that have to be kept in sync with each other.
      52b63649
  3. 03 2月, 2016 9 次提交
  4. 02 2月, 2016 3 次提交
    • M
      Fix typo in comment · 23f3cc36
      Magnus Hagander 提交于
      23f3cc36
    • T
      Fix lossy KNN GiST when ordering operator returns non-float8 value. · f25d07d9
      Teodor Sigaev 提交于
      KNN GiST with recheck flag should return to executor the same type as ordering
      operator, GiST detects this type by looking to return type of function which
      implements ordering operator. But occasionally detecting code works after
      replacing ordering operator function to distance support function.
      Distance support function always returns float8, so, detecting code get float8
      instead of actual return type of ordering operator.
      
      Built-in opclasses don't have ordering operator which doesn't return
      non-float8 value, so, tests are impossible here, at least now.
      
      Backpatch to 9.5 where lozzy KNN was introduced.
      
      Author: Alexander Korotkov
      Report by: Artur Zakirov
      f25d07d9
    • R
      Make all built-in lwlock tranche IDs fixed. · 7191ce8b
      Robert Haas 提交于
      This makes the values more stable, which seems like a good thing for
      anybody who needs to look at at them.
      
      Alexander Korotkov and Amit Kapila
      7191ce8b
  5. 01 2月, 2016 6 次提交
  6. 31 1月, 2016 2 次提交