1. 05 Apr, 2017 4 commits
  2. 04 Apr, 2017 20 commits
  3. 03 Apr, 2017 5 commits
  4. 02 Apr, 2017 6 commits
  5. 01 Apr, 2017 5 commits
    • Kevin Grittner's avatar
      Fix two undocumented parameters to functions from ENR patch. · 41bd155d
      Kevin Grittner authored
      On ProcessUtility document the parameter, to match others.
      
      On CreateCachedPlan drop the queryEnv parameter.  It was not
      referenced within the function, and had been added on the
      assumption that with some unknown future usage of QueryEnvironment
      it might be useful to do something there.  We have avoided other
      "just in case" implementation of unused paramters, so drop it here.
      
      Per gripe from Tom Lane
      41bd155d
    • Alvaro Herrera's avatar
      BRIN de-summarization · c655899b
      Alvaro Herrera authored
      When the BRIN summary tuple for a page range becomes too "wide" for the
      values actually stored in the table (because the tuples that were
      present originally are no longer present due to updates or deletes), it
      can be useful to remove the outdated summary tuple, so that a future
      summarization can install a tighter summary.
      
      This commit introduces a SQL-callable interface to do so.
      
      Author: Álvaro Herrera
      Reviewed-by: Eiji Seki
      Discussion: https://postgr.es/m/20170228045643.n2ri74ara4fhhfxf@alvherre.pgsql
      c655899b
    • Alvaro Herrera's avatar
      Fix expected output · 3a82129a
      Alvaro Herrera authored
      Previous commit had a thinko in the expected output for new tests.
      
      Per buildfarm
      3a82129a
    • Alvaro Herrera's avatar
      BRIN auto-summarization · 7526e102
      Alvaro Herrera authored
      Previously, only VACUUM would cause a page range to get initially
      summarized by BRIN indexes, which for some use cases takes too much time
      since the inserts occur.  To avoid the delay, have brininsert request a
      summarization run for the previous range as soon as the first tuple is
      inserted into the first page of the next range.  Autovacuum is in charge
      of processing these requests, after doing all the regular vacuuming/
      analyzing work on tables.
      
      This doesn't impose any new tasks on autovacuum, because autovacuum was
      already in charge of doing summarizations.  The only actual effect is to
      change the timing, i.e. that it occurs earlier.  For this reason, we
      don't go any great lengths to record these requests very robustly; if
      they are lost because of a server crash or restart, they will happen at
      a later time anyway.
      
      Most of the new code here is in autovacuum, which can now be told about
      "work items" to process.  This can be used for other things such as GIN
      pending list cleaning, perhaps visibility map bit setting, both of which
      are currently invoked during vacuum, but do not really depend on vacuum
      taking place.
      
      The requests are at the page range level, a granularity for which we did
      not have SQL-level access; we only had index-level summarization
      requests via brin_summarize_new_values().  It seems reasonable to add
      SQL-level access to range-level summarization too, so add a function
      brin_summarize_range() to do that.
      
      Authors: Álvaro Herrera, based on sketch from Simon Riggs.
      Reviewed-by: Thomas Munro.
      Discussion: https://postgr.es/m/20170301045823.vneqdqkmsd4as4ds@alvherre.pgsql
      7526e102
    • Magnus Hagander's avatar
      Write "waiting for checkpoint" on regular progress row · 7220c7b3
      Magnus Hagander authored
      When reporting progress, make the "waiting for checkpoint" test be
      overwritten by the file-based progress once it's completed. This is more
      consistent with how we report the rest of the progress.
      
      Suggested by Jeff Janes
      7220c7b3