Skip to content
Snippets Groups Projects
  1. Mar 20, 2012
  2. Mar 19, 2012
  3. Mar 17, 2012
  4. Mar 16, 2012
  5. Mar 15, 2012
  6. Mar 13, 2012
    • Robert Haas's avatar
      pgstattuple: Use a BufferAccessStrategy object to avoid cache-trashing. · 2e46bf67
      Robert Haas authored
      Jaime Casanova, reviewed by Noah Misch, slightly modified by me.
      2e46bf67
    • Robert Haas's avatar
      pgstattuple: Add new error case for spgist indexes. · 97c85098
      Robert Haas authored
      Extracted from a larger patch by Jaime Casanova, reviewed by Noah Misch.
      I think this error message could use some more extensive revision, but
      this at least makes the handling of spgist consistent with what we do for
      other types of indexes that this code doesn't know how to handle.
      97c85098
    • Bruce Momjian's avatar
      In pg_upgrade, add various logging improvements: · 717f6d60
      Bruce Momjian authored
      	add ability to control permissions of created files
      	have psql echo its queries for easier debugging
      	output four separate log files, and delete them on success
      	add -r/--retain option to keep log files after success
      	make logs file append-only
      	remove -g/-G/-l logging options
      	sugggest tailing appropriate log file on failure
      	enhance -v/--verbose behavior
      717f6d60
  7. Mar 09, 2012
    • Robert Haas's avatar
      sepgsql DROP support. · e914a144
      Robert Haas authored
      KaiGai Kohei
      e914a144
    • Tom Lane's avatar
      Revise FDW planning API, again. · b1495393
      Tom Lane authored
      Further reflection shows that a single callback isn't very workable if we
      desire to let FDWs generate multiple Paths, because that forces the FDW to
      do all work necessary to generate a valid Plan node for each Path.  Instead
      split the former PlanForeignScan API into three steps: GetForeignRelSize,
      GetForeignPaths, GetForeignPlan.  We had already bit the bullet of breaking
      the 9.1 FDW API for 9.2, so this shouldn't cause very much additional pain,
      and it's substantially more flexible for complex FDWs.
      
      Add an fdw_private field to RelOptInfo so that the new functions can save
      state there rather than possibly having to recalculate information two or
      three times.
      
      In addition, we'd not thought through what would be needed to allow an FDW
      to set up subexpressions of its choice for runtime execution.  We could
      treat ForeignScan.fdw_private as an executable expression but that seems
      likely to break existing FDWs unnecessarily (in particular, it would
      restrict the set of node types allowable in fdw_private to those supported
      by expression_tree_walker).  Instead, invent a separate field fdw_exprs
      which will receive the postprocessing appropriate for expression trees.
      (One field is enough since it can be a list of expressions; also, we assume
      the corresponding expression state tree(s) will be held within fdw_state,
      so we don't need to add anything to ForeignScanState.)
      
      Per review of Hanada Shigeru's pgsql_fdw patch.  We may need to tweak this
      further as we continue to work on that patch, but to me it feels a lot
      closer to being right now.
      b1495393
  8. Mar 08, 2012
    • Tom Lane's avatar
      Add GetForeignColumnOptions() to foreign.c, and add some documentation. · 9088d1b9
      Tom Lane authored
      GetForeignColumnOptions provides some abstraction for accessing
      column-specific FDW options, on a par with the access functions that were
      already provided here for other FDW-related information.
      
      Adjust file_fdw.c to use GetForeignColumnOptions instead of equivalent
      hand-rolled code.
      
      In addition, add some SGML documentation for the functions exported by
      foreign.c that are meant for use by FDW authors.
      
      (This is the fdw_helper portion of the proposed pgsql_fdw patch.)
      
      Hanada Shigeru, reviewed by KaiGai Kohei
      9088d1b9
  9. Mar 06, 2012
  10. Mar 05, 2012
    • Tom Lane's avatar
      Redesign PlanForeignScan API to allow multiple paths for a foreign table. · 6b289942
      Tom Lane authored
      The original API specification only allowed an FDW to create a single
      access path, which doesn't seem like a terribly good idea in hindsight.
      Instead, move the responsibility for building the Path node and calling
      add_path() into the FDW's PlanForeignScan function.  Now, it can do that
      more than once if appropriate.  There is no longer any need for the
      transient FdwPlan struct, so get rid of that.
      
      Etsuro Fujita, Shigeru Hanada, Tom Lane
      6b289942
  11. Feb 28, 2012
  12. Feb 23, 2012
  13. Feb 17, 2012
    • Tom Lane's avatar
      Fix longstanding error in contrib/intarray's int[] & int[] operator. · 06d9afa6
      Tom Lane authored
      The array intersection code would give wrong results if the first entry of
      the correct output array would be "1".  (I think only this value could be
      at risk, since the previous word would always be a lower-bound entry with
      that fixed value.)
      
      Problem spotted by Julien Rouhaud, initial patch by Guillaume Lelarge,
      cosmetic improvements by me.
      06d9afa6
  14. Feb 15, 2012
  15. Feb 14, 2012
  16. Feb 13, 2012
  17. Feb 07, 2012
  18. Feb 01, 2012
    • Alvaro Herrera's avatar
      Implement dry-run mode for pg_archivecleanup · b2e431a4
      Alvaro Herrera authored
      In dry-run mode, just the name of the file to be removed is printed to
      stdout; this is so the user can easily plug it into another program
      through a pipe.  If debug mode is also specified, a more verbose message
      is printed to stderr.
      
      Author: Gabriele Bartolini
      Reviewer: Josh Kupershmidt
      b2e431a4
  19. Jan 28, 2012
  20. Jan 27, 2012
  21. Jan 25, 2012
  22. Jan 20, 2012
  23. Jan 19, 2012
  24. Jan 15, 2012
  25. Jan 10, 2012
    • Tom Lane's avatar
      Fix one-byte buffer overrun in contrib/test_parser. · 89b3c6cc
      Tom Lane authored
      The original coding examined the next character before verifying that
      there *is* a next character.  In the worst case with the input buffer
      right up against the end of memory, this would result in a segfault.
      
      Problem spotted by Paul Guyot; this commit extends his patch to fix an
      additional case.  In addition, make the code a tad more readable by not
      overloading the usage of *tlen.
      89b3c6cc
  26. Jan 02, 2012
Loading