Skip to content
Snippets Groups Projects
  1. Apr 02, 2006
  2. Mar 17, 2006
  3. Mar 08, 2006
  4. Mar 03, 2006
  5. Feb 28, 2006
    • Tom Lane's avatar
      Allow the syntax CREATE TYPE foo, with no parameters, to permit explicit · 8e68d783
      Tom Lane authored
      creation of a shell type.  This allows a less hacky way of dealing with
      the mutual dependency between a datatype and its I/O functions: make a
      shell type, then make the functions, then define the datatype fully.
      We should fix pg_dump to handle things this way, but this commit just deals
      with the backend.
      
      Martijn van Oosterhout, with some corrections by Tom Lane.
      8e68d783
  6. Feb 26, 2006
  7. Feb 19, 2006
  8. Feb 14, 2006
  9. Feb 13, 2006
  10. Feb 12, 2006
    • Tom Lane's avatar
      Fix broken markup. · 1ac1526e
      Tom Lane authored
      1ac1526e
    • Bruce Momjian's avatar
      Revert patch becaues of locking concerns: · 04a2b54c
      Bruce Momjian authored
      Allow ALTER TABLE ... ALTER CONSTRAINT ... RENAME
      
      Joachim Wieland
      04a2b54c
    • Bruce Momjian's avatar
      > Actually, if you submit a patch that says either "SCROLL is the · 92a26489
      Bruce Momjian authored
      default"
      > or "NO SCROLL is the default", it will be rejected as incorrect.  The
      > reason is that the default behavior is different from either of these,
      > as is explained in the NOTES section.
      
      Ok, so *that's* where the bit about the query plan being simple enough.
      Based on that, ISTM that it should be premissable for us to decide that
      a cursor requiring a sort isn't "simple enough" to support SCROLL.
      
      In any case, here's a patch that makes the non-standard behavior easier
      for people to find.
      
      Jim C. Nasby
      92a26489
    • Bruce Momjian's avatar
      Add psql option: · 0f57851e
      Bruce Momjian authored
      	-1 or --single-transaction
      
      Simon Riggs
      0f57851e
    • Bruce Momjian's avatar
      I've created a new shared catalog table pg_shdescription to store · f9a726aa
      Bruce Momjian authored
      comments on cluster global objects like databases, tablespaces, and
      roles.
      
      It touches a lot of places, but not much in the way of big changes.  The
      only design decision I made was to duplicate the query and manipulation
      functions rather than to try and have them handle both shared and local
      comments.  I believe this is simpler for the code and not an issue for
      callers because they know what type of object they are dealing with.
      This has resulted in a shobj_description function analagous to
      obj_description and backend functions [Create/Delete]SharedComments
      mirroring the existing [Create/Delete]Comments functions.
      
      pg_shdescription.h goes into src/include/catalog/
      
      Kris Jurka
      f9a726aa
    • Bruce Momjian's avatar
      Please find enclosed a patch that lets you use \c to connect · 07bae9c0
      Bruce Momjian authored
      (optionally) to a new host and port without exiting psql.  This
      eliminates, IMHO, a surprise in that you can now connect to PostgreSQL
      on a differnt machine from the one where you started your session. This
      should help people who use psql as an administrative tool.
      
      David Fetter
      07bae9c0
  11. Feb 11, 2006
  12. Feb 04, 2006
  13. Jan 22, 2006
  14. Jan 21, 2006
    • Bruce Momjian's avatar
      Add GRANT ON SEQUENCE syntax to support sequence-only permissions. · 4789e988
      Bruce Momjian authored
      Continue to support GRANT ON [TABLE] for sequences for backward
      compatibility;  issue warning for invalid sequence permissions.
      
      [Backward compatibility warning message.]
      
      Add USAGE permission for sequences that allows only currval() and
      nextval(), not setval().
      
      Mention object name in grant/revoke warnings because of possible
      multi-object operations.
      4789e988
  15. Jan 20, 2006
  16. Jan 18, 2006
    • Neil Conway's avatar
      Add a new system view, pg_cursors, that displays the currently available · 33e06ebc
      Neil Conway authored
      cursors. Patch from Joachim Wieland, review and ediorialization by Neil
      Conway. The view lists cursors defined by DECLARE CURSOR, using SPI, or
      via the Bind message of the frontend/backend protocol. This means the
      view does not list the unnamed portal or the portal created to implement
      EXECUTE. Because we do list SPI portals, there might be more rows in
      this view than you might expect if you are using SPI implicitly (e.g.
      via a procedural language).
      
      Per recent discussion on -hackers, the query string included in the
      view for cursors defined by DECLARE CURSOR is based on
      debug_query_string. That means it is not accurate if multiple queries
      separated by semicolons are submitted as one query string. However,
      there doesn't seem a trivial fix for that: debug_query_string
      is better than nothing. I also changed SPI_cursor_open() to include
      the source text for the portal it creates: AFAICS there is no reason
      not to do this.
      
      Update the documentation and regression tests, bump the catversion.
      33e06ebc
  17. Jan 16, 2006
  18. Jan 15, 2006
  19. Jan 13, 2006
    • 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
  20. Jan 11, 2006
  21. Jan 08, 2006
    • 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
  22. Jan 06, 2006
  23. Jan 05, 2006
  24. Dec 28, 2005
  25. Dec 25, 2005
Loading