1. 10 May, 2013 5 commits
    • Tom Lane's avatar
      Guard against input_rows == 0 in estimate_num_groups(). · 69cc60dc
      Tom Lane authored
      This case doesn't normally happen, because the planner usually clamps
      all row estimates to at least one row; but I found that it can arise
      when dealing with relations excluded by constraints.  Without a defense,
      estimate_num_groups() can return zero, which leads to divisions by zero
      inside the planner as well as assertion failures in the executor.
      
      An alternative fix would be to change set_dummy_rel_pathlist() to make
      the size estimate for a dummy relation 1 row instead of 0, but that seemed
      pretty ugly; and probably someday we'll want to drop the convention that
      the minimum rowcount estimate is 1 row.
      
      Back-patch to 8.4, as the problem can be demonstrated that far back.
      69cc60dc
    • Tom Lane's avatar
      Fix pgp_pub_decrypt() so it works for secret keys with passwords. · 477b5a0e
      Tom Lane authored
      Per report from Keith Fiske.
      
      Marko Kreen
      477b5a0e
    • Tom Lane's avatar
      Fix management of fn_extra caching during repeated GiST index scans. · 91715e82
      Tom Lane authored
      Commit d22a09dc introduced official support
      for GiST consistentFns that want to cache data using the FmgrInfo fn_extra
      pointer: the idea was to preserve the cached values across gistrescan(),
      whereas formerly they'd been leaked.  However, there was an oversight in
      that, namely that multiple scan keys might reference the same column's
      consistentFn; the code would result in propagating the same cache value
      into multiple scan keys, resulting in crashes or wrong answers.  Use a
      separate array instead to ensure that each scan key keeps its own state.
      
      Per bug #8143 from Joel Roller.  Back-patch to 9.2 where the bug was
      introduced.
      91715e82
    • Peter Eisentraut's avatar
      Update key words table for 9.3 · cda7acee
      Peter Eisentraut authored
      cda7acee
    • Peter Eisentraut's avatar
      Remove make_keywords · bd98852c
      Peter Eisentraut authored
      It is not used anymore.
      bd98852c
  2. 09 May, 2013 3 commits
  3. 08 May, 2013 5 commits
    • Tom Lane's avatar
      Better fix for permissions tests in excluded subqueries. · a7b96538
      Tom Lane authored
      This reverts the code changes in 50c13748,
      which turned out to induce crashes and not completely fix the problem
      anyway.  That commit only considered single subqueries that were excluded
      by constraint-exclusion logic, but actually the problem also exists for
      subqueries that are appendrel members (ie part of a UNION ALL list).  In
      such cases we can't add a dummy subpath to the appendrel's AppendPath list
      without defeating the logic that recognizes when an appendrel is completely
      excluded.  Instead, fix the problem by having setrefs.c scan the rangetable
      an extra time looking for subqueries that didn't get into the plan tree.
      (This approach depends on the 9.2 change that made set_subquery_pathlist
      generate dummy paths for excluded single subqueries, so that the exclusion
      behavior is the same for single subqueries and appendrel members.)
      
      Note: it turns out that the appendrel form of the missed-permissions-checks
      bug exists as far back as 8.4.  However, since the practical effect of that
      bug seems pretty minimal, consensus is to not attempt to fix it in the back
      branches, at least not yet.  Possibly we could back-port this patch once
      it's gotten a reasonable amount of testing in HEAD.  For the moment I'm
      just going to revert the previous patch in 9.2.
      a7b96538
    • Heikki Linnakangas's avatar
      The data structure used in unaccent is a trie, not suffix tree. · 4b06c182
      Heikki Linnakangas authored
      Fix the term used in variable and struct names, and comments.
      
      Alexander Korotkov
      4b06c182
    • Heikki Linnakangas's avatar
      Fix walsender failure at promotion. · 2ffa66f4
      Heikki Linnakangas authored
      If a standby server has a cascading standby server connected to it, it's
      possible that WAL has already been sent up to the next WAL page boundary,
      splitting a WAL record in the middle, when the first standby server is
      promoted. Don't throw an assertion failure or error in walsender if that
      happens.
      
      Also, fix a variant of the same bug in pg_receivexlog: if it had already
      received WAL on previous timeline up to a segment boundary, when the
      upstream standby server is promoted so that the timeline switch record falls
      on the previous segment, pg_receivexlog would miss the segment containing
      the timeline switch. To fix that, have walsender send the position of the
      timeline switch at end-of-streaming, in addition to the next timeline's ID.
      It was previously assumed that the switch happened exactly where the
      streaming stopped.
      
      Note: this is an incompatible change in the streaming protocol. You might
      get an error if you try to stream over timeline switches, if the client is
      running 9.3beta1 and the server is more recent. It should be fine after a
      reconnect, however.
      
      Reported by Fujii Masao.
      2ffa66f4
    • Heikki Linnakangas's avatar
      Use the term "radix tree" instead of "suffix tree" for SP-GiST text opclass. · cb953d8b
      Heikki Linnakangas authored
      What we have implemented is a radix tree (or a radix trie or a patricia
      trie), but the docs and code comments incorrectly called it a "suffix tree".
      
      Alexander Korotkov
      cb953d8b
    • Peter Eisentraut's avatar
      doc: Add IDs to link targets used by phpPgAdmin · 20c00ca6
      Peter Eisentraut authored
      Karl O. Pinc
      20c00ca6
  4. 07 May, 2013 1 commit
  5. 06 May, 2013 11 commits
    • Tom Lane's avatar
      Stamp 9.3beta1. · 817a8942
      Tom Lane authored
      817a8942
    • Tom Lane's avatar
      Desultory copy-editing of the 9.3 release notes. · f1ff90cf
      Tom Lane authored
      I had time for a quick review of the notes, so here are some fixes.
      f1ff90cf
    • Tom Lane's avatar
      Move materialized views' is-populated status into their pg_class entries. · 1d6c72a5
      Tom Lane authored
      Previously this state was represented by whether the view's disk file had
      zero or nonzero size, which is problematic for numerous reasons, since it's
      breaking a fundamental assumption about heap storage.  This was done to
      allow unlogged matviews to revert to unpopulated status after a crash
      despite our lack of any ability to update catalog entries post-crash.
      However, this poses enough risk of future problems that it seems better to
      not support unlogged matviews until we can find another way.  Accordingly,
      revert that choice as well as a number of existing kluges forced by it
      in favor of creating a pg_class.relispopulated flag column.
      1d6c72a5
    • Tom Lane's avatar
      Back out some recent translation updates. · 5da57980
      Tom Lane authored
      Very old versions of msgfmt choke on these specific messages, for reasons
      that are unclear at the moment.  Remove them so that we can ship a beta
      release and not get complaints from testers (these messages will just go
      untranslated, instead, and we're hardly at 100% coverage anyway).
      Peter Eisentraut will look for a better fix later.
      5da57980
    • Tom Lane's avatar
      Disallow unlogged materialized views. · 3223b25f
      Tom Lane authored
      The initial implementation of this feature was really unsupportable,
      because it's relying on the physical size of an on-disk file to carry the
      relation's populated/unpopulated state, which is at least a modularity
      violation and could have serious long-term consequences.  We could say that
      an unlogged matview goes to empty on crash, but not everybody likes that
      definition, so let's just remove the feature for 9.3.  We can add it back
      when we have a less klugy implementation.
      
      I left the grammar and tab-completion support for CREATE UNLOGGED
      MATERIALIZED VIEW in place, since it's harmless and allows delivering a
      more specific error message about the unsupported feature.
      
      I'm committing this separately to ease identification of what should be
      reverted when/if we are able to re-enable the feature.
      3223b25f
    • Bruce Momjian's avatar
      9.3 release notes: use "restoration" · c2986607
      Bruce Momjian authored
      Andrew Dunstan
      c2986607
    • Bruce Momjian's avatar
      9.3 release notes: Add cache of local locks · 2fbffc0d
      Bruce Momjian authored
      Mention this also helps in the restoring of pg_dumps.
      
      Jeff Janes
      2fbffc0d
    • Bruce Momjian's avatar
      9.3 release notes: update from Amit Kapila · c750aa90
      Bruce Momjian authored
      No need to mention wal_receiver_status_interval.
      c750aa90
    • Simon Riggs's avatar
      Execute SET TRANSACTION SNAPSHOT during pg_dump · b2ad82da
      Simon Riggs authored
      Previous coding set the SQL buffer but never executed
      
      Bug noted by me during beta testing
      b2ad82da
    • Bruce Momjian's avatar
      Revert idea of zer-padding padding session id in log_line_prefix · 8b06e6ab
      Bruce Momjian authored
      Removal of doc adjustment and release note mention as well.
      8b06e6ab
    • Peter Eisentraut's avatar
      Translation updates · 539ecc92
      Peter Eisentraut authored
      539ecc92
  6. 04 May, 2013 8 commits
  7. 03 May, 2013 4 commits
  8. 02 May, 2013 3 commits