1. 31 Jan, 2011 2 commits
  2. 30 Jan, 2011 2 commits
    • Tom Lane's avatar
      Make reduce_outer_joins() smarter about semijoins. · 9688c4e6
      Tom Lane authored
      reduce_outer_joins() mistakenly treated a semijoin like a left join for
      purposes of deciding whether not-null constraints created by the join's
      quals could be passed down into the join's left-hand side (possibly
      resulting in outer-join simplification there).  Actually, semijoin works
      like inner join for this purpose, ie, we do not need to see any rows that
      can't possibly satisfy the quals.  Hence, two-line fix to treat semi and
      inner joins alike.  Per observation by Andres Freund about a performance
      gripe from Yazan Suleiman.
      
      Back-patch to 8.4, since this oversight has been there since the current
      handling of semijoins was implemented.
      9688c4e6
    • Magnus Hagander's avatar
      Add option to include WAL in base backup · 507069de
      Magnus Hagander authored
      When included, this makes the base backup a complete working
      "clone" of the initial database, ready to have a postmaster
      started against it without the need to set up any log archiving
      or similar.
      
      Magnus Hagander, reviewed by Fujii Masao and Heikki Linnakangas
      507069de
  3. 29 Jan, 2011 4 commits
  4. 28 Jan, 2011 1 commit
  5. 27 Jan, 2011 11 commits
  6. 26 Jan, 2011 15 commits
  7. 25 Jan, 2011 5 commits
    • Robert Haas's avatar
      Correct ALTER TYPE -> SET DATA TYPE in ALTER TABLE documentation. · 2b2b2ae2
      Robert Haas authored
      The latter is the correct name of the operation to change the data type
      of a column.
      
      Noah Misch
      2b2b2ae2
    • Tom Lane's avatar
      Remove old claim that ExclusiveLock is sometimes taken on system catalogs. · 5042d16d
      Tom Lane authored
      We used to do that on pg_listener, but pg_listener is no more.
      
      Also add a bit more documentation for ShareRowExclusive mode.
      5042d16d
    • Robert Haas's avatar
      Fix thinko in ALTER FOREIGN TABLE documentation. · 558d1c95
      Robert Haas authored
      Noah Misch
      558d1c95
    • Tom Lane's avatar
      Replace pg_class.relhasexclusion with pg_index.indisexclusion. · bd1ad1b0
      Tom Lane authored
      There isn't any need to track this state on a table-wide basis, and trying
      to do so introduces undesirable semantic fuzziness.  Move the flag to
      pg_index, where it clearly describes just a single index and can be
      immutable after index creation.
      bd1ad1b0
    • Tom Lane's avatar
      Implement ALTER TABLE ADD UNIQUE/PRIMARY KEY USING INDEX. · 88452d5b
      Tom Lane authored
      This feature allows a unique or pkey constraint to be created using an
      already-existing unique index.  While the constraint isn't very
      functionally different from the bare index, it's nice to be able to do that
      for documentation purposes.  The main advantage over just issuing a plain
      ALTER TABLE ADD UNIQUE/PRIMARY KEY is that the index can be created with
      CREATE INDEX CONCURRENTLY, so that there is not a long interval where the
      table is locked against updates.
      
      On the way, refactor some of the code in DefineIndex() and index_create()
      so that we don't have to pass through those functions in order to create
      the index constraint's catalog entries.  Also, in parse_utilcmd.c, pass
      around the ParseState pointer in struct CreateStmtContext to save on
      notation, and add error location pointers to some error reports that didn't
      have one before.
      
      Gurjeet Singh, reviewed by Steve Singer and Tom Lane
      88452d5b