1. 25 1月, 2012 7 次提交
  2. 24 1月, 2012 4 次提交
  3. 23 1月, 2012 1 次提交
  4. 22 1月, 2012 1 次提交
  5. 20 1月, 2012 7 次提交
  6. 19 1月, 2012 3 次提交
    • M
      Separate state from query string in pg_stat_activity · 4f42b546
      Magnus Hagander 提交于
      This separates the state (running/idle/idleintransaction etc) into
      it's own field ("state"), and leaves the query field containing just
      query text.
      
      The query text will now mean "current query" when a query is running
      and "last query" in other states. Accordingly,the field has been
      renamed from current_query to query.
      
      Since backwards compatibility was broken anyway to make that, the procpid
      field has also been renamed to pid - along with the same field in
      pg_stat_replication for consistency.
      
      Scott Mead and Magnus Hagander, review work from Greg Smith
      4f42b546
    • H
      Make pg_relation_size() and friends return NULL if the object doesn't exist. · fa352d66
      Heikki Linnakangas 提交于
      That avoids errors when the functions are used in queries like "SELECT
      pg_relation_size(oid) FROM pg_class", and a table is dropped concurrently.
      
      Phil Sorber
      fa352d66
    • P
      PL/Python: Update example · 6f6b46c9
      Peter Eisentraut 提交于
      Change the usesavedplan() example to use a more modern Python style
      using the .setdefault() function.
      6f6b46c9
  7. 18 1月, 2012 5 次提交
    • H
      Fix corner case in cleanup of transactions using SSI. · 326b922e
      Heikki Linnakangas 提交于
      When the only remaining active transactions are READ ONLY, we do a "partial
      cleanup" of committed transactions because certain types of conflicts
      aren't possible anymore. For committed r/w transactions, we release the
      SIREAD locks but keep the SERIALIZABLEXACT. However, for committed r/o
      transactions, we can go further and release the SERIALIZABLEXACT too. The
      problem was with the latter case: we were returning the SERIALIZABLEXACT to
      the free list without removing it from the finished list.
      
      The only real change in the patch is the SHMQueueDelete line, but I also
      reworked some of the surrounding code to make it obvious that r/o and r/w
      transactions are handled differently -- the existing code felt a bit too
      clever.
      
      Dan Ports
      326b922e
    • M
      Show psql timing output for failed queries as well as successful ones · 2106c55a
      Magnus Hagander 提交于
      This is useful for example when a long-runing statement such as CREATE
      INDEX fails after a long time.
      2106c55a
    • M
      Fix warning about unused variable · ae137bca
      Magnus Hagander 提交于
      ae137bca
    • R
      Regression tests for security_barrier views. · 504f0c5d
      Robert Haas 提交于
      KaiGai Kohei
      504f0c5d
    • R
      Catch fatal flex errors in the GUC file lexer. · 4b496a35
      Robert Haas 提交于
      This prevents the postmaster from unexpectedly croaking if postgresql.conf
      contains something like:
      
      include 'invalid_directory_name'
      
      Noah Misch. Reviewed by Tom Lane and myself.
      4b496a35
  8. 17 1月, 2012 3 次提交
  9. 16 1月, 2012 3 次提交
    • R
      Prevent adding relations to a concurrently dropped schema. · 1575fbcb
      Robert Haas 提交于
      In the previous coding, it was possible for a relation to be created
      via CREATE TABLE, CREATE VIEW, CREATE SEQUENCE, CREATE FOREIGN TABLE,
      etc.  in a schema while that schema was meanwhile being concurrently
      dropped.  This led to a pg_class entry with an invalid relnamespace
      value.  The same problem could occur if a relation was moved using
      ALTER .. SET SCHEMA while the target schema was being concurrently
      dropped.  This patch prevents both of those scenarios by locking the
      schema to which the relation is being added using AccessShareLock,
      which conflicts with the AccessExclusiveLock taken by DROP.
      
      As a desirable side effect, this also prevents the use of CREATE OR
      REPLACE VIEW to queue for an AccessExclusiveLock on a relation on which
      you have no rights: that will now fail immediately with a permissions
      error, before trying to obtain a lock.
      
      We need similar protection for all other object types, but as everything
      other than relations uses a slightly different set of code paths, I'm
      leaving that for a separate commit.
      
      Original complaint (as far as I could find) about CREATE by Nikhil
      Sontakke; risk for ALTER .. SET SCHEMA pointed out by Tom Lane;
      further details by Dan Farina; patch by me; review by Hitoshi Harada.
      1575fbcb
    • A
      Improve efficiency of recent changes to plperl's sv2cstr(). · 01d83ffd
      Andrew Dunstan 提交于
      Along the way, add a missing dependency in the GNUmakefile.
      
      Alex Hunsaker, with a slight adjustment by me.
      01d83ffd
    • H
      Fix poll() implementation of WaitLatchOrSocket to notice postmaster death. · b2b4af53
      Heikki Linnakangas 提交于
      When the remote end of the pipe is closed, select() reports the fd as
      readable, but poll() has a separate POLLHUP return code for that.
      
      Spotted by Peter Geoghegan.
      b2b4af53
  10. 15 1月, 2012 5 次提交
  11. 14 1月, 2012 1 次提交