1. 08 Jul, 2019 1 commit
  2. 07 Jul, 2019 2 commits
  3. 06 Jul, 2019 5 commits
  4. 05 Jul, 2019 8 commits
  5. 04 Jul, 2019 10 commits
  6. 03 Jul, 2019 8 commits
  7. 02 Jul, 2019 6 commits
    • Peter Eisentraut's avatar
      Fix accidentally swapped error message arguments · 84c41ae8
      Peter Eisentraut authored
      Author: Alexey Kondratov <a.kondratov@postgrespro.ru>
      84c41ae8
    • Peter Eisentraut's avatar
      Remove redundant newlines from error messages · 24c7000f
      Peter Eisentraut authored
      These are no longer needed/allowed with the new logging API.
      24c7000f
    • Tom Lane's avatar
      Don't treat complete_from_const as equivalent to complete_from_list. · b4771d7c
      Tom Lane authored
      Commit 4f3b38fe supposed that complete_from_const() is equivalent to
      the one-element-list case of complete_from_list(), but that's not
      really true at all.  complete_from_const() supposes that the completion
      is certain enough to justify wiping out whatever the user typed, while
      complete_from_list() will only provide completions that match the
      word-so-far.
      
      In practice, given the lame parsing technology used by tab-complete.c,
      it's fairly hard to believe that we're *ever* certain enough about
      a completion to justify auto-correcting user input that doesn't match.
      
      Hence, remove the inappropriate unification of the two cases.
      As things now stand, complete_from_const() is used only for the
      situation where we have no matches and we need to keep readline
      from applying its default complete-with-file-names behavior.
      
      This (mis?) behavior actually exists much further back, but
      I'm hesitant to change it in released branches.  It's not too
      late for v12, though, especially seeing that the aforesaid
      commit is new in v12.
      
      Per gripe from Ken Tanzer.
      
      Discussion: https://postgr.es/m/CAD3a31XpXzrZA9TT3BqLSHghdTK+=cXjNCE+oL2Zn4+oWoc=qA@mail.gmail.com
      b4771d7c
    • Tom Lane's avatar
      Fix tab completion of "SET variable TO|=" to not offer bogus completions. · 0ec3e13c
      Tom Lane authored
      Don't think that the context "UPDATE tab SET var =" is a GUC-setting
      command.
      
      If we have "SET var =" but the "var" is not a known GUC variable,
      don't offer any completions.  The most likely explanation is that
      we've misparsed the context and it's not really a GUC-setting command.
      
      Per gripe from Ken Tanzer.  Back-patch to 9.6.  The issue exists
      further back, but before 9.6 the code looks very different and it
      doesn't actually know whether the "var" name matches anything,
      so I desisted from trying to fix it.
      
      Discussion: https://postgr.es/m/CAD3a31XpXzrZA9TT3BqLSHghdTK+=cXjNCE+oL2Zn4+oWoc=qA@mail.gmail.com
      0ec3e13c
    • Tom Lane's avatar
      Simplify psql \d's rule for ordering the indexes of a table. · 4d6603f2
      Tom Lane authored
      The previous rule was "primary key (if any) first, then other unique
      indexes in name order, then all other indexes in name order".
      But the preference for unique indexes seems a bit obsolete since the
      introduction of exclusion constraints.   It's no longer the case
      that unique indexes are the only ones that constrain what data can
      be in the table, and it's hard to see what other rationale there is
      for separating out unique indexes.  Other new features like the
      possibility for some indexes to be INVALID (hence, not constraining
      anything) make this even shakier.
      
      Hence, simplify the sort order to be "primary key (if any) first,
      then all other indexes in name order".
      
      No documentation change, since this was never documented anyway.
      A couple of existing regression test cases change output, though.
      
      Discussion: https://postgr.es/m/14422.1561474929@sss.pgh.pa.us
      4d6603f2
    • Peter Geoghegan's avatar
      Remove obsolete nbtree "get root" comment. · 66c5bd3a
      Peter Geoghegan authored
      Remove a very old Berkeley era comment that doesn't seem to have
      anything to do with the current locking considerations within
      _bt_getroot().
      
      Discussion: https://postgr.es/m/CAH2-WzmA2H+rL-xxF5o6QhMD+9x6cJTnz2Mr3Li_pbPBmqoTBQ@mail.gmail.com
      66c5bd3a