Skip to content
Snippets Groups Projects
  1. Sep 20, 2010
  2. Apr 02, 2010
  3. Jun 11, 2009
  4. Apr 28, 2009
  5. Apr 01, 2009
  6. Jan 06, 2009
  7. Jun 19, 2008
  8. May 17, 2008
    • Andrew Dunstan's avatar
      Add $PostgreSQL$ markers to a lot of files that were missing them. · 53972b46
      Andrew Dunstan authored
      This particular batch was just for *.c and *.h file.
      
      The changes were made with the following 2 commands:
      
      find . \( \( -name 'libstemmer' -o -name 'expected' -o -name 'ppport.h' \) -prune \) -o  \( -name '*.[ch]'  \) \( -exec grep -q '\$PostgreSQL' {} \; -o -print \) | while read file ; do head -n 1 < $file | grep -q '^/\*' && echo $file; done | xargs -l sed -i -e '1s/^\// /' -e '1i/*\n * $PostgreSQL:$ \n *'
      
      find . \( \( -name 'libstemmer' -o -name 'expected' -o -name 'ppport.h' \) -prune \) -o  \( -name '*.[ch]'  \) \( -exec grep -q '\$PostgreSQL' {} \; -o -print \) | xargs -l sed -i -e '1i/*\n * $PostgreSQL:$ \n */'
      53972b46
  9. May 16, 2008
  10. May 12, 2008
    • Alvaro Herrera's avatar
      Restructure some header files a bit, in particular heapam.h, by removing some · f8c4d7db
      Alvaro Herrera authored
      unnecessary #include lines in it.  Also, move some tuple routine prototypes and
      macros to htup.h, which allows removal of heapam.h inclusion from some .c
      files.
      
      For this to work, a new header file access/sysattr.h needed to be created,
      initially containing attribute numbers of system columns, for pg_dump usage.
      
      While at it, make contrib ltree, intarray and hstore header files more
      consistent with our header style.
      f8c4d7db
  11. Mar 26, 2008
  12. Mar 21, 2008
  13. Jan 14, 2008
  14. Nov 15, 2007
  15. Nov 13, 2007
  16. Nov 11, 2007
  17. Oct 22, 2007
  18. Sep 20, 2007
    • Tom Lane's avatar
      HOT updates. When we update a tuple without changing any of its indexed · 282d2a03
      Tom Lane authored
      columns, and the new version can be stored on the same heap page, we no longer
      generate extra index entries for the new version.  Instead, index searches
      follow the HOT-chain links to ensure they find the correct tuple version.
      
      In addition, this patch introduces the ability to "prune" dead tuples on a
      per-page basis, without having to do a complete VACUUM pass to recover space.
      VACUUM is still needed to clean up dead index entries, however.
      
      Pavan Deolasee, with help from a bunch of other people.
      282d2a03
  19. Sep 13, 2007
    • Tom Lane's avatar
      Redefine the lp_flags field of item pointers as having four states, rather · 68893035
      Tom Lane authored
      than two independent bits (one of which was never used in heap pages anyway,
      or at least hadn't been in a very long time).  This gives us flexibility to
      add the HOT notions of redirected and dead item pointers without requiring
      anything so klugy as magic values of lp_off and lp_len.  The state values
      are chosen so that for the states currently in use (pre-HOT) there is no
      change in the physical representation.
      68893035
  20. Aug 27, 2007
  21. Jul 16, 2007
  22. Jun 27, 2007
  23. Jun 07, 2007
  24. May 17, 2007
  25. May 03, 2007
  26. Mar 25, 2007
    • Tom Lane's avatar
      Clean up the representation of special snapshots by including a "method · e85a01df
      Tom Lane authored
      pointer" in every Snapshot struct.  This allows removal of the case-by-case
      tests in HeapTupleSatisfiesVisibility, which should make it a bit faster
      (I didn't try any performance tests though).  More importantly, we are no
      longer violating portable C practices by assuming that small integers are
      distinct from all pointer values, and HeapTupleSatisfiesDirty no longer
      has a non-reentrant API involving side-effects on a global variable.
      
      There were a couple of places calling HeapTupleSatisfiesXXX routines
      directly rather than through the HeapTupleSatisfiesVisibility macro.
      Since these places had to be changed anyway, I chose to make them go
      through the macro for uniformity.
      
      Along the way I renamed HeapTupleSatisfiesSnapshot to HeapTupleSatisfiesMVCC
      to emphasize that it's only used with MVCC-type snapshots.  I was sorely
      tempted to rename HeapTupleSatisfiesVisibility to HeapTupleSatisfiesSnapshot,
      but forebore for the moment to avoid confusion and reduce the likelihood that
      this patch breaks some of the pending patches.  Might want to reconsider
      doing that later.
      e85a01df
  27. Mar 16, 2007
  28. Oct 19, 2006
  29. Oct 04, 2006
  30. Sep 04, 2006
  31. Sep 02, 2006
  32. Jul 11, 2006
  33. Jul 06, 2006
    • Bruce Momjian's avatar
      Add index information to /contrib/pgstattuple: · dab42382
      Bruce Momjian authored
      This is an extension of pgstattuple to query information from indexes.
      It supports btree, hash and gist. Gin is not supported. It scans only
      index pages and does not read corresponding heap tuples. Therefore,
      'dead_tuple' means the number of tuples with LP_DELETE flag.
      
      Also, I added an experimental feature for btree indexes. It checks
      fragmentation factor of indexes. If an leaf has the right link on the
      next adjacent page in the file, it is assumed to be continuous (not
      fragmented). It will help us to decide when to REINDEX.
      
      ITAGAKI Takahiro
      dab42382
  34. May 31, 2006
  35. Feb 27, 2006
Loading