Skip to content
Snippets Groups Projects
  1. Jan 20, 2012
  2. Jan 19, 2012
  3. Jan 18, 2012
  4. Jan 16, 2012
    • Alvaro Herrera's avatar
      Disallow merging ONLY constraints in children tables · 3b11247a
      Alvaro Herrera authored
      When creating a child table, or when attaching an existing table as
      child of another, we must not allow inheritable constraints to be
      merged with non-inheritable ones, because then grandchildren would not
      properly get the constraint.  This would violate the grandparent's
      expectations.
      
      Bugs noted by Robert Haas.
      
      Author: Nikhil Sontakke
      3b11247a
  5. Jan 15, 2012
    • Magnus Hagander's avatar
      Allow a user to kill his own queries using pg_cancel_backend() · 0495aaad
      Magnus Hagander authored
      Allows a user to use pg_cancel_queries() to cancel queries in
      other backends if they are running under the same role.
      pg_terminate_backend() still requires superuser permissoins.
      
      Short patch, many authors working on the bikeshed: Magnus Hagander,
      Josh Kupershmidt, Edward Muller, Greg Smith.
      0495aaad
  6. Jan 14, 2012
    • Heikki Linnakangas's avatar
      Make superuser imply replication privilege. The idea of a privilege that · 00c5f550
      Heikki Linnakangas authored
      superuser doesn't have doesn't make much sense, as a superuser can do
      whatever he wants through other means, anyway. So instead of granting
      replication privilege to superusers in CREATE USER time by default, allow
      replication connection from superusers whether or not they have the
      replication privilege.
      
      Patch by Noah Misch, per discussion on bug report #6264
      00c5f550
  7. Jan 10, 2012
  8. Jan 09, 2012
  9. Jan 07, 2012
    • Peter Eisentraut's avatar
      Rename the internal structures of the CREATE TABLE (LIKE ...) facility · db49517c
      Peter Eisentraut authored
      The original implementation of this interpreted it as a kind of
      "inheritance" facility and named all the internal structures
      accordingly.  This turned out to be very confusing, because it has
      nothing to do with the INHERITS feature.  So rename all the internal
      parser infrastructure, update the comments, adjust the error messages,
      and split up the regression tests.
      db49517c
  10. Jan 06, 2012
  11. Jan 05, 2012
  12. Jan 03, 2012
  13. Jan 02, 2012
  14. Dec 31, 2011
  15. Dec 26, 2011
  16. Dec 25, 2011
    • Tom Lane's avatar
      Rethink representation of index clauses' mapping to index columns. · 472d3935
      Tom Lane authored
      In commit e2c2c2e8 I made use of nested
      list structures to show which clauses went with which index columns, but
      on reflection that's a data structure that only an old-line Lisp hacker
      could love.  Worse, it adds unnecessary complication to the many places
      that don't much care which clauses go with which index columns.  Revert
      to the previous arrangement of flat lists of clauses, and instead add a
      parallel integer list of column numbers.  The places that care about the
      pairing can chase both lists with forboth(), while the places that don't
      care just examine one list the same as before.
      
      The only real downside to this is that there are now two more lists that
      need to be passed to amcostestimate functions in case they care about
      column matching (which btcostestimate does, so not passing the info is not
      an option).  Rather than deal with 11-argument amcostestimate functions,
      pass just the IndexPath and expect the functions to extract fields from it.
      That gets us down to 7 arguments which is better than 11, and it seems
      more future-proof against likely additions to the information we keep
      about an index path.
      472d3935
  17. Dec 23, 2011
  18. Dec 22, 2011
    • Robert Haas's avatar
      Typo fixes. · 0510b62d
      Robert Haas authored
      All noted by Jaime Casanova.
      0510b62d
    • Robert Haas's avatar
      Add a security_barrier option for views. · 0e4611c0
      Robert Haas authored
      When a view is marked as a security barrier, it will not be pulled up
      into the containing query, and no quals will be pushed down into it,
      so that no function or operator chosen by the user can be applied to
      rows not exposed by the view.  Views not configured with this
      option cannot provide robust row-level security, but will perform far
      better.
      
      Patch by KaiGai Kohei; original problem report by Heikki Linnakangas
      (in October 2009!).  Review (in earlier versions) by Noah Misch and
      others.  Design advice by Tom Lane and myself.  Further review and
      cleanup by me.
      0e4611c0
    • Peter Eisentraut's avatar
      Add ALTER DOMAIN ... RENAME · f90dd280
      Peter Eisentraut authored
      You could already rename domains using ALTER TYPE, but with this new
      command it is more consistent with how other commands treat domains as
      a subcategory of types.
      f90dd280
  19. Dec 21, 2011
  20. Dec 19, 2011
    • Peter Eisentraut's avatar
      Add support for privileges on types · 72920557
      Peter Eisentraut authored
      This adds support for the more or less SQL-conforming USAGE privilege
      on types and domains.  The intent is to be able restrict which users
      can create dependencies on types, which restricts the way in which
      owners can alter types.
      
      reviewed by Yeb Havinga
      72920557
    • Alvaro Herrera's avatar
      Allow CHECK constraints to be declared ONLY · 61d81bd2
      Alvaro Herrera authored
      This makes them enforceable only on the parent table, not on children
      tables.  This is useful in various situations, per discussion involving
      people bitten by the restrictive behavior introduced in 8.4.
      
      Message-Id:
      8762mp93iw.fsf@comcast.net
      CAFaPBrSMMpubkGf4zcRL_YL-AERUbYF_-ZNNYfb3CVwwEqc9TQ@mail.gmail.com
      
      Authors: Nikhil Sontakke, Alex Hunsaker
      Reviewed by Robert Haas and myself
      61d81bd2
    • Tom Lane's avatar
      Teach SP-GiST to do index-only scans. · 92203624
      Tom Lane authored
      Operator classes can specify whether or not they support this; this
      preserves the flexibility to use lossy representations within an index.
      
      In passing, move constant data about a given index into the rd_amcache
      cache area, instead of doing fresh lookups each time we start an index
      operation.  This is mainly to try to make sure that spgcanreturn() has
      insignificant cost; I still don't have any proof that it matters for
      actual index accesses.  Also, get rid of useless copying of FmgrInfo
      pointers; we can perfectly well use the relcache's versions in-place.
      92203624
  21. Dec 18, 2011
  22. Dec 17, 2011
  23. Dec 16, 2011
  24. Dec 14, 2011
  25. Dec 09, 2011
  26. Dec 07, 2011
    • Magnus Hagander's avatar
      Remove spclocation field from pg_tablespace · 16d8e594
      Magnus Hagander authored
      Instead, add a function pg_tablespace_location(oid) used to return
      the same information, and do this by reading the symbolic link.
      
      Doing it this way makes it possible to relocate a tablespace when the
      database is down by simply changing the symbolic link.
      16d8e594
Loading