1. 17 4月, 2007 1 次提交
    • A
      Add a multi-worker capability to autovacuum. This allows multiple worker · e2a186b0
      Alvaro Herrera 提交于
      processes to be running simultaneously.  Also, now autovacuum processes do not
      count towards the max_connections limit; they are counted separately from
      regular processes, and are limited by the new GUC variable
      autovacuum_max_workers.
      
      The launcher now has intelligence to launch workers on each database every
      autovacuum_naptime seconds, limited only on the max amount of worker slots
      available.
      
      Also, the global worker I/O utilization is limited by the vacuum cost-based
      delay feature.  Workers are "balanced" so that the total I/O consumption does
      not exceed the established limit.  This part of the patch was contributed by
      ITAGAKI Takahiro.
      
      Per discussion.
      e2a186b0
  2. 06 1月, 2007 1 次提交
  3. 04 10月, 2006 1 次提交
  4. 02 5月, 2006 1 次提交
  5. 05 3月, 2006 1 次提交
  6. 04 7月, 2005 1 次提交
    • T
      Arrange for the postmaster (and standalone backends, initdb, etc) to · eb5949d1
      Tom Lane 提交于
      chdir into PGDATA and subsequently use relative paths instead of absolute
      paths to access all files under PGDATA.  This seems to give a small
      performance improvement, and it should make the system more robust
      against naive DBAs doing things like moving a database directory that
      has a live postmaster in it.  Per recent discussion.
      eb5949d1
  7. 01 1月, 2005 1 次提交
    • P
      · 2ff50159
      PostgreSQL Daemon 提交于
      Tag appropriate files for rc3
      
      Also performed an initial run through of upgrading our Copyright date to
      extend to 2005 ... first run here was very simple ... change everything
      where: grep 1996-2004 && the word 'Copyright' ... scanned through the
      generated list with 'less' first, and after, to make sure that I only
      picked up the right entries ...
      2ff50159
  8. 29 8月, 2004 2 次提交
  9. 06 8月, 2004 1 次提交
  10. 18 6月, 2004 1 次提交
    • T
      Tablespaces. Alternate database locations are dead, long live tablespaces. · 2467394e
      Tom Lane 提交于
      There are various things left to do: contrib dbsize and oid2name modules
      need work, and so does the documentation.  Also someone should think about
      COMMENT ON TABLESPACE and maybe RENAME TABLESPACE.  Also initlocation is
      dead, it just doesn't know it yet.
      
      Gavin Sherry and Tom Lane.
      2467394e
  11. 31 5月, 2004 1 次提交
  12. 30 5月, 2004 1 次提交
    • T
      Separate out bgwriter code into a logically separate module, rather · 076a055a
      Tom Lane 提交于
      than being random pieces of other files.  Give bgwriter responsibility
      for all checkpoint activity (other than a post-recovery checkpoint);
      so this child process absorbs the functionality of the former transient
      checkpoint and shutdown subprocesses.  While at it, create an actual
      include file for postmaster.c, which for some reason never had its own
      file before.
      076a055a
  13. 28 5月, 2004 1 次提交
    • T
      Code review for EXEC_BACKEND changes. Reduce the number of #ifdefs by · 1a321f26
      Tom Lane 提交于
      about a third, make it work on non-Windows platforms again.  (But perhaps
      I broke the WIN32 code, since I have no way to test that.)  Fold all the
      paths that fork postmaster child processes to go through the single
      routine SubPostmasterMain, which takes care of resurrecting the state that
      would normally be inherited from the postmaster (including GUC variables).
      Clean up some places where there's no particularly good reason for the
      EXEC and non-EXEC cases to work differently.  Take care of one or two
      FIXMEs that remained in the code.
      1a321f26
  14. 18 5月, 2004 1 次提交
  15. 17 5月, 2004 1 次提交
  16. 14 5月, 2004 1 次提交
  17. 10 2月, 2004 1 次提交
    • T
      Centralize implementation of delay code by creating a pg_usleep() · 58f337a3
      Tom Lane 提交于
      subroutine in src/port/pgsleep.c.  Remove platform dependencies from
      miscadmin.h and put them in port.h where they belong.  Extend recent
      vacuum cost-based-delay patch to apply to VACUUM FULL, ANALYZE, and
      non-btree index vacuuming.
      
      By the way, where is the documentation for the cost-based-delay patch?
      58f337a3
  18. 07 2月, 2004 1 次提交
  19. 04 2月, 2004 1 次提交
    • T
      Rename SortMem and VacuumMem to work_mem and maintenance_work_mem. · 391c3811
      Tom Lane 提交于
      Make btree index creation and initial validation of foreign-key constraints
      use maintenance_work_mem rather than work_mem as their memory limit.
      Add some code to guc.c to allow these variables to be referenced by their
      old names in SHOW and SET commands, for backwards compatibility.
      391c3811
  20. 29 1月, 2004 1 次提交
    • T
      Review uses of IsUnderPostmaster, change some tests to look at · 2f0d43b2
      Tom Lane 提交于
      whereToSendOutput instead because they are really inquiring about
      the correct client communication protocol.  Update some comments.
      This is pointing towards supporting regular FE/BE client protocol
      in a standalone backend, per discussion a month or so back.
      2f0d43b2
  21. 27 1月, 2004 3 次提交
    • B
      [all] Removed call to getppid in SendPostmasterSignal, replacing with a · eec08b95
      Bruce Momjian 提交于
      PostmasterPid variable, which gets set (early) in PostmasterMain
      getppid would not be the postmaster?
      
      [fork/exec] Implements processCancelRequest by keeping an array of
      
      pid/cancel_key structs in shared mem
      
      [fork/exec] Moves AttachSharedMemoryAndSemaphores call for backends into
      SubPostmasterMain
      
      [win32] Implements reaper/waitpid by keeping an arrays of children
      pids,handles in postmaster local mem
            - this item is largely untested, for reasons which should be
      obvious, but appears sound
      
      [win32/all] Added extern for pgpipe in Win32 case, and changed the second
      pipe call (which seems to have been missed earlier) to pgpipe
      
      [win32] #define'd ftruncate to chsize in the Win32 case
      
      [win32] PG_USLEEP for Win32 has a misplaced paren. Fixed.
      
      [win32] DLLIMPORT handling for MingW case
      
      
      Claudio Natoli
      eec08b95
    • B
      Back out win32 patch so we can apply it separately. · ede3b762
      Bruce Momjian 提交于
      ede3b762
    • B
      Attached is a patch that fixes some trivial typos and alignment. Please · f4921e5c
      Bruce Momjian 提交于
      apply.
      
      Alvaro Herrera
      f4921e5c
  22. 07 1月, 2004 1 次提交
  23. 30 11月, 2003 1 次提交
    • P
      · 969685ad
      PostgreSQL Daemon 提交于
      $Header: -> $PostgreSQL Changes ...
      969685ad
  24. 26 8月, 2003 1 次提交
  25. 04 8月, 2003 1 次提交
  26. 29 7月, 2003 1 次提交
    • T
      Apply (a somewhat revised version of) Greg Mullane's patch to eliminate · 9c2a7c22
      Tom Lane 提交于
      heuristic determination of day vs month in date/time input.  Add the
      ability to specify that input is interpreted as yy-mm-dd order (which
      formerly worked, but only for yy greater than 31).  DateStyle's input
      component now has the preferred spellings DMY, MDY, or YMD; the older
      keywords European and US are now aliases for the first two of these.
      Per recent discussions on pgsql-general.
      9c2a7c22
  27. 27 6月, 2003 1 次提交
  28. 29 5月, 2003 2 次提交
  29. 22 2月, 2003 1 次提交
    • T
      Simplify timezone-handling code per proposal to pghackers: get rid of · 80d6a277
      Tom Lane 提交于
      setting timezone-related variables during transaction start.  They were
      not used anyway in platforms that HAVE_TM_ZONE or HAVE_INT_TIMEZONE,
      which it appears is *all* the platforms we are currently supporting.
      For platforms that have neither, we now only support UTC or numeric-
      offset-from-UTC timezones.
      80d6a277
  30. 04 10月, 2002 1 次提交
  31. 05 9月, 2002 1 次提交
  32. 12 8月, 2002 1 次提交
    • T
      Change memory-space accounting mechanism in tuplesort.c and tuplestore.c · 77a7e996
      Tom Lane 提交于
      to make a reasonable attempt at accounting for palloc overhead, not just
      the requested size of each memory chunk.  Since in many scenarios this
      will make for a significant reduction in the amount of space acquired,
      partially compensate by doubling the default value of SORT_MEM to 1Mb.
      Per discussion in pgsql-general around 9-Jun-2002..
      77a7e996
  33. 21 6月, 2002 1 次提交
  34. 28 4月, 2002 1 次提交
    • T
      Support toasting of shared system relations, and provide toast tables for · c06f6a6b
      Tom Lane 提交于
      pg_database, pg_shadow, pg_group, all of which now have potentially-long
      fields.  Along the way, get rid of SharedSystemRelationNames list: shared
      rels are now identified in their include/pg_catalog/*.h files by a
      BKI_SHARED_RELATION macro, while indexes and toast rels inherit sharedness
      automatically from their parent table.  Fix some bugs with failure to detoast
      pg_group.grolist during ALTER GROUP.
      c06f6a6b
  35. 03 3月, 2002 1 次提交
    • B
      Commit to match discussed elog() changes. Only update is that LOG is · a033daf5
      Bruce Momjian 提交于
      now just below FATAL in server_min_messages.  Added more text to
      highlight ordering difference between it and client_min_messages.
      
      ---------------------------------------------------------------------------
      
      REALLYFATAL => PANIC
      STOP => PANIC
      New INFO level the prints to client by default
      New LOG level the prints to server log by default
      Cause VACUUM information to print only to the client
      NOTICE => INFO where purely information messages are sent
      DEBUG => LOG for purely server status messages
      DEBUG removed, kept as backward compatible
      DEBUG5, DEBUG4, DEBUG3, DEBUG2, DEBUG1 added
      DebugLvl removed in favor of new DEBUG[1-5] symbols
      New server_min_messages GUC parameter with values:
              DEBUG[5-1], INFO, NOTICE, ERROR, LOG, FATAL, PANIC
      New client_min_messages GUC parameter with values:
              DEBUG[5-1], LOG, INFO, NOTICE, ERROR, FATAL, PANIC
      Server startup now logged with LOG instead of DEBUG
      Remove debug_level GUC parameter
      elog() numbers now start at 10
      Add test to print error message if older elog() values are passed to elog()
      Bootstrap mode now has a -d that requires an argument, like postmaster
      a033daf5
  36. 25 10月, 2001 1 次提交