1. 14 Apr, 2005 1 commit
    • Tom Lane's avatar
      First phase of project to use fixed OIDs for all system catalogs and · 7c13781e
      Tom Lane authored
      indexes.  Extend the macros in include/catalog/*.h to carry the info
      about hand-assigned OIDs, and adjust the genbki script and bootstrap
      code to make the relations actually get those OIDs.  Remove the small
      number of RelOid_pg_foo macros that we had in favor of a complete
      set named like the catname.h and indexing.h macros.  Next phase will
      get rid of internal use of names for looking up catalogs and indexes;
      but this completes the changes forcing an initdb, so it looks like a
      good place to commit.
      Along the way, I made the shared relations (pg_database etc) not be
      'bootstrap' relations any more, so as to reduce the number of hardwired
      entries and simplify changing those relations in future.  I'm not
      sure whether they ever really needed to be handled as bootstrap
      relations, but it seems to work fine to not do so now.
      7c13781e
  2. 13 Apr, 2005 4 commits
  3. 12 Apr, 2005 6 commits
  4. 11 Apr, 2005 3 commits
  5. 10 Apr, 2005 4 commits
  6. 09 Apr, 2005 2 commits
  7. 08 Apr, 2005 4 commits
  8. 07 Apr, 2005 6 commits
  9. 06 Apr, 2005 6 commits
  10. 05 Apr, 2005 3 commits
  11. 04 Apr, 2005 1 commit
    • Neil Conway's avatar
      This patch changes int2_avg_accum() and int4_avg_accum() use the nodeAgg · 51b2f8ba
      Neil Conway authored
      performance hack Tom introduced recently. This means we can avoid
      copying the transition array for each input tuple if these functions
      are invoked as aggregate transition functions.
      
      To test the performance improvement, I created a 1 million row table
      with a single int4 column. Without the patch, SELECT avg(col) FROM
      table took about 4.2 seconds (after the data was cached); with the
      patch, it took about 3.2 seconds. Naturally, the performance
      improvement for a less trivial query (or a table with wider rows)
      would be relatively smaller.
      51b2f8ba