1. 11 Apr, 2017 3 commits
  2. 10 Apr, 2017 11 commits
  3. 09 Apr, 2017 2 commits
  4. 08 Apr, 2017 7 commits
    • Tom Lane's avatar
      Clean up bugs in clause_selectivity() cleanup. · eef8c006
      Tom Lane authored
      Commit ac2b0950 was not terribly carefully reviewed.  Band-aid it to
      not fail on non-RestrictInfo input, per report from Andreas Seltenreich.
      Also make it do something more reasonable with variable-free clauses,
      and improve nearby comments.
      
      Discussion: https://postgr.es/m/87inmf5rdx.fsf@credativ.de
      eef8c006
    • Tom Lane's avatar
      Add newly-symlinked files to "make clean" target. · aba696d1
      Tom Lane authored
      Oversight in 60f11b87.
      aba696d1
    • Heikki Linnakangas's avatar
      Fix the new SASLprep tests to work with non-UTF-8 locales. · 9025af3e
      Heikki Linnakangas authored
      Fix by forcing database encoding to UTF-8, regardless of the current
      locale.
      
      Pointed out by Tom Lane.
      
      Discussion: https://www.postgresql.org/message-id/8934.1491614631@sss.pgh.pa.us
      9025af3e
    • Peter Eisentraut's avatar
      doc: Add some markup · f0e44021
      Peter Eisentraut authored
      f0e44021
    • Kevin Grittner's avatar
      Add GUCs for predicate lock promotion thresholds. · c63172d6
      Kevin Grittner authored
      Defaults match the fixed behavior of prior releases, but now DBAs
      have better options to tune serializable workloads.
      
      It might be nice to be able to set this per relation, but that part
      will need to wait for another release.
      
      Author: Dagfinn Ilmari Mannsåker
      c63172d6
    • Tom Lane's avatar
      Optimize joins when the inner relation can be proven unique. · 9c7f5229
      Tom Lane authored
      If there can certainly be no more than one matching inner row for a given
      outer row, then the executor can move on to the next outer row as soon as
      it's found one match; there's no need to continue scanning the inner
      relation for this outer row.  This saves useless scanning in nestloop
      and hash joins.  In merge joins, it offers the opportunity to skip
      mark/restore processing, because we know we have not advanced past the
      first possible match for the next outer row.
      
      Of course, the devil is in the details: the proof of uniqueness must
      depend only on joinquals (not otherquals), and if we want to skip
      mergejoin mark/restore then it must depend only on merge clauses.
      To avoid adding more planning overhead than absolutely necessary,
      the present patch errs in the conservative direction: there are cases
      where inner_unique or skip_mark_restore processing could be used, but
      it will not do so because it's not sure that the uniqueness proof
      depended only on "safe" clauses.  This could be improved later.
      
      David Rowley, reviewed and rather heavily editorialized on by me
      
      Discussion: https://postgr.es/m/CAApHDvqF6Sw-TK98bW48TdtFJ+3a7D2mFyZ7++=D-RyPsL76gw@mail.gmail.com
      9c7f5229
    • Andres Freund's avatar
      Fix issues in e8fdbd58. · f13a9121
      Andres Freund authored
      When the 64bit atomics simulation is in use, we can't necessarily
      guarantee the correct alignment of the atomics due to lack of compiler
      support for doing so- that's fine from a safety perspective, because
      everything is protected by a lock, but we asserted the alignment in
      all cases.  Weaken them.  Per complaint from Alvaro Herrera.
      
      My #ifdefery for PG_HAVE_8BYTE_SINGLE_COPY_ATOMICITY wasn't
      sufficient. Fix that.  Per complaint from Alexander Korotkov.
      f13a9121
  5. 07 Apr, 2017 17 commits