1. 01 2月, 2010 7 次提交
  2. 31 1月, 2010 2 次提交
    • T
      Avoid performing encoding conversion on command tag strings during EndCommand. · eb889266
      Tom Lane 提交于
      Since all current and foreseeable future command tags will be pure ASCII,
      there is no need to do conversion on them.  This saves a few cycles and also
      avoids polluting otherwise-pristine subtransaction memory contexts, which
      is the cause of the backend memory leak exhibited in bug #5302.  (Someday
      we'll probably want to have a better method of determining whether
      subtransaction contexts need to be kept around, but today is not that day.)
      
      Backpatch to 8.0.  The cycle-shaving aspect of this would work in 7.4
      too, but without subtransactions the memory-leak aspect doesn't apply,
      so it doesn't seem worth touching 7.4.
      eb889266
    • T
      Fix memory leakage introduced into print_aligned_text by 8.4 changes · 07be293a
      Tom Lane 提交于
      (failure to free col_lineptrs[] array elements) and exacerbated in the
      current devel cycle (failure to free "wrap").  This resulted in moderate
      bloat of psql over long script runs.  Noted while testing bug #5302,
      although what the reporter was complaining of was backend-side leakage.
      07be293a
  3. 30 1月, 2010 7 次提交
  4. 29 1月, 2010 7 次提交
  5. 28 1月, 2010 6 次提交
  6. 27 1月, 2010 7 次提交
    • H
      Make standby server continuously retry restoring the next WAL segment with · 1bb25580
      Heikki Linnakangas 提交于
      restore_command, if the connection to the primary server is lost. This
      ensures that the standby can recover automatically, if the connection is
      lost for a long time and standby falls behind so much that the required
      WAL segments have been archived and deleted in the master.
      
      This also makes standby_mode useful without streaming replication; the
      server will keep retrying restore_command every few seconds until the
      trigger file is found. That's the same basic functionality pg_standby
      offers, but without the bells and whistles.
      
      To implement that, refactor the ReadRecord/FetchRecord functions. The
      FetchRecord() function introduced in the original streaming replication
      patch is removed, and all the retry logic is now in a new function called
      XLogReadPage(). XLogReadPage() is now responsible for executing
      restore_command, launching walreceiver, and waiting for new WAL to arrive
      from primary, as required.
      
      This also changes the life cycle of walreceiver. When launched, it now only
      tries to connect to the master once, and exits if the connection fails, or
      is lost during streaming for any reason. The startup process detects the
      death, and re-launches walreceiver if necessary.
      1bb25580
    • M
      Fix typo. · ab13d1e9
      Magnus Hagander 提交于
      Noted by Thom Brown.
      ab13d1e9
    • M
      Add support for RADIUS authentication. · b3daac5a
      Magnus Hagander 提交于
      b3daac5a
    • A
      Fix plperl.sgml errors from recent commit. · 000416ac
      Andrew Dunstan 提交于
      000416ac
    • A
      Various small improvements and cleanups for PL/Perl. · 1a7c2f9d
      Andrew Dunstan 提交于
      - Allow (ineffective) use of 'require' in plperl
          If the required module is not already loaded then it dies.
          So "use strict;" now works in plperl.
      
      - Pre-load the feature module if perl >= 5.10.
          So "use feature :5.10;" now works in plperl.
      
      - Stored procedure subs are now given names.
          The names are not visible in ordinary use, but they make
          tools like Devel::NYTProf and Devel::Cover much more useful.
      
      - Simplified and generalized the subroutine creation code.
          Now one code path for generating sub source code, not four.
          Can generate multiple 'use' statements with specific imports
          (which handles plperl.use_strict currently and can easily
          be extended to handle a plperl.use_feature=':5.12' in future).
      
      - Disallows use of Safe version 2.20 which is broken for PL/Perl.
          http://rt.perl.org/rt3/Ticket/Display.html?id=72068
      
      - Assorted minor optimizations by pre-growing data structures.
      
      Patch from Tim Bunce, reviewed by Alex Hunsaker.
      1a7c2f9d
    • T
      Remove the default_do_language parameter, instead making DO use a hardwired · d879697c
      Tom Lane 提交于
      default of "plpgsql".  This is more reasonable than it was when the DO patch
      was written, because we have since decided that plpgsql should be installed
      by default.  Per discussion, having a parameter for this doesn't seem useful
      enough to justify the risk of application breakage if the value is changed
      unexpectedly.
      d879697c
    • T
      6c0f94fc
  7. 26 1月, 2010 4 次提交