1. 13 Jan, 2006 2 commits
    • Tom Lane's avatar
      Document that CREATE OPERATOR CLASS amounts to granting public execute · 7d6d02b6
      Tom Lane authored
      permissions on the functions and operators contained in the opclass.
      Since we already require superuser privilege to create an operator class,
      there's no expansion-of-privilege hazard here, but if someone were to get
      the idea of building an opclass containing functions that need security
      restrictions, we'd better warn them off.  Also, change the permission
      checks from have-execute-privilege to have-ownership, and then comment
      them all out since they're dead code anyway under the superuser restriction.
      7d6d02b6
    • Tom Lane's avatar
      Require the issuer of CREATE TYPE to own the functions mentioned in the · 1564e92c
      Tom Lane authored
      type definition.  Because use of a type's I/O conversion functions isn't
      access-checked, CREATE TYPE amounts to granting public execute permissions
      on the functions, and so allowing it to anybody means that someone could
      theoretically gain access to a function he's not supposed to be able to
      execute.  The parameter-type restrictions already enforced by CREATE TYPE
      make it fairly unlikely that this oversight is meaningful in practice,
      but still it seems like a good idea to plug the hole going forward.
      Also, document the implicit grant just in case anybody gets the idea of
      building I/O functions that might need security restrictions.
      1564e92c
  2. 12 Jan, 2006 6 commits
  3. 11 Jan, 2006 7 commits
  4. 10 Jan, 2006 5 commits
  5. 09 Jan, 2006 4 commits
  6. 08 Jan, 2006 5 commits
    • Andrew Dunstan's avatar
      · 9bb76d0b
      Andrew Dunstan authored
      Rationalise perl header inclusions via a common include file, which also
      declares routines in plperl.c and spi_internal.c used in other files.
      
      Along the way, also stop perl from hijacking stdio and other stuff on Windows.
      9bb76d0b
    • Tom Lane's avatar
      Fix the assert_enabled issue properly. This eliminates the former ABI · 2645cb54
      Tom Lane authored
      difference between USE_ASSERT_CHECKING and not: the assert_enabled
      variable is always there.
      2645cb54
    • Tom Lane's avatar
      Recent patch broke guc.c for non-USE_ASSERT_CHECKING case. Per · cbf39930
      Tom Lane authored
      Stefan Kaltenbrunner.
      cbf39930
    • Tom Lane's avatar
      Avoid leaking memory while reading toasted entries from pg_rewrite, · edfbd074
      Tom Lane authored
      and nail a couple more system indexes into cache.  This doesn't make
      any difference in normal system operation, but when forcing constant
      cache resets it's difficult to get through the rules regression test
      without these changes.
      edfbd074
    • Neil Conway's avatar
      Add a new system view, pg_prepared_statements, that can be used to · 44b928e8
      Neil Conway authored
      access information about the prepared statements that are available
      in the current session. Original patch from Joachim Wieland, various
      improvements by Neil Conway.
      
      The "statement" column of the view contains the literal query string
      sent by the client, without any rewriting or pretty printing. This
      means that prepared statements created via SQL will be prefixed with
      "PREPARE ... AS ", whereas those prepared via the FE/BE protocol will
      not. That is unfortunate, but discussion on -patches did not yield an
      efficient way to improve this, and there is some merit in returning
      exactly what the client sent to the backend.
      
      Catalog version bumped, regression tests updated.
      44b928e8
  7. 07 Jan, 2006 3 commits
  8. 06 Jan, 2006 7 commits
  9. 05 Jan, 2006 1 commit
    • Bruce Momjian's avatar
      Add: · 6d41b144
      Bruce Momjian authored
      >
      > 	* Allow SERIAL sequences to inherit permissions from the base table?
      6d41b144