1. 13 4月, 2004 1 次提交
    • B
      Here's an attempt at new socket and signal code for win32. · a4c40f14
      Bruce Momjian 提交于
      It works on the principle of turning sockets into non-blocking, and then
      emulate blocking behaviour on top of that, while allowing signals to
      run. Signals are now implemented using an event instead of APCs, thus
      getting rid of the issue of APCs not being compatible with "old style"
      sockets functions.
      
      It also moves the win32 specific code away from pqsignal.h/c into
      port/win32, and also removes the "thread style workaround" of the APC
      issue previously in place.
      
      In order to make things work, a few things are also changed in pgstat.c:
      
      1) There is now a separate pipe to the collector and the bufferer. This
      is required because the pipe will otherwise only be signalled in one of
      the processes when the postmaster goes down. The MS winsock code for
      select() must have some kind of workaround for this behaviour, but I
      have found no stable way of doing that. You really are not supposed to
      use the same socket from more than one process (unless you use
      WSADuplicateSocket(), in which case the docs specifically say that only
      one will be flagged).
      
      2) The check for "postmaster death" is moved into a separate select()
      call after the main loop. The previous behaviour select():ed on the
      postmaster pipe, while later explicitly saying "we do NOT check for
      postmaster exit inside the loop".
      The issue was that the code relies on the same select() call seeing both
      the postmaster pipe *and* the pgstat pipe go away. This does not always
      happen, and it appears that useing WSAEventSelect() makes it even more
      common that it does not.
      Since it's only called when the process exits, I don't think using a
      separate select() call will have any significant impact on how the stats
      collector works.
      
      Magnus Hagander
      a4c40f14
  2. 19 2月, 2004 1 次提交
  3. 09 2月, 2004 1 次提交
    • N
      Win32 signals cleanup. Patch by Magnus Hagander, with input from Claudio · f06e7952
      Neil Conway 提交于
      Natoli and Bruce Momjian (and some cosmetic fixes from Neil Conway).
      Changes:
      
          - remove duplicate signal definitions from pqsignal.h
      
          - replace pqkill() with kill() and redefine kill() in Win32
      
          - use ereport() in place of fprintf() in some error handling in
            pqsignal.c
      
          - export pg_queue_signal() and make use of it where necessary
      
          - add a console control handler for Ctrl-C and similar handling
            on Win32
      
          - do WaitForSingleObjectEx() in CHECK_FOR_INTERRUPTS() on Win32;
            query cancelling should now work on Win32
      
          - various other fixes and cleanups
      f06e7952
  4. 27 1月, 2004 2 次提交
    • B
      Pgindent win32 signal code. · 70d58115
      Bruce Momjian 提交于
      70d58115
    • B
      Here's the latest win32 signals code, this time in the form of a patch · 50491963
      Bruce Momjian 提交于
      against the latest shapshot. It also includes the replacement of kill()
      with pqkill() and sigsetmask() with pqsigsetmask().
      
      Passes all tests fine on my linux machine once applied. Still doesn't
      link completely on Win32 - there are a few things still required. But
      much closer than before.
      
      At Bruce's request, I'm goint to write up a README file about the method
      of signals delivery chosen and why the others were rejected (basically a
      summary of the mailinglist discussions). I'll finish that up once/if the
      patch is accepted.
      
      
      Magnus Hagander
      50491963
  5. 30 11月, 2003 1 次提交
    • P
      · 969685ad
      PostgreSQL Daemon 提交于
      $Header: -> $PostgreSQL Changes ...
      969685ad
  6. 04 8月, 2003 1 次提交
  7. 21 6月, 2002 1 次提交
  8. 06 11月, 2001 1 次提交
  9. 22 9月, 2001 1 次提交
    • T
      Add an overall timeout on the client authentication cycle, so that · 35b7601b
      Tom Lane 提交于
      a hung client or lost connection can't indefinitely block a postmaster
      child (not to mention the possibility of deliberate DoS attacks).
      Timeout is controlled by new authentication_timeout GUC variable,
      which I set to 60 seconds by default ... does that seem reasonable?
      35b7601b
  10. 08 9月, 2001 2 次提交
  11. 24 8月, 2001 1 次提交
  12. 22 3月, 2001 1 次提交
  13. 10 2月, 2001 1 次提交
    • T
      Restructure the key include files per recent pghackers discussion: there · d08741ea
      Tom Lane 提交于
      are now separate files "postgres.h" and "postgres_fe.h", which are meant
      to be the primary include files for backend .c files and frontend .c files
      respectively.  By default, only include files meant for frontend use are
      installed into the installation include directory.  There is a new make
      target 'make install-all-headers' that adds the whole content of the
      src/include tree to the installed fileset, for use by people who want to
      develop server-side code without keeping the complete source tree on hand.
      Cleaned up a whole lot of crufty and inconsistent header inclusions.
      d08741ea
  14. 25 1月, 2001 1 次提交
  15. 29 6月, 2000 1 次提交
  16. 28 6月, 2000 1 次提交
    • T
      First phase of memory management rewrite (see backend/utils/mmgr/README · 1aebc361
      Tom Lane 提交于
      for details).  It doesn't really do that much yet, since there are no
      short-term memory contexts in the executor, but the infrastructure is
      in place and long-term contexts are handled reasonably.  A few long-
      standing bugs have been fixed, such as 'VACUUM; anything' in a single
      query string crashing.  Also, out-of-memory is now considered a
      recoverable ERROR, not FATAL.
      Eliminate a large amount of crufty, now-dead code in and around
      memory management.
      Fix problem with holding off SIGTRAP, SIGSEGV, etc in postmaster and
      backend startup.
      1aebc361
  17. 11 6月, 2000 1 次提交
    • P
      Substituted new configure test for types of accept() · 06cd0f1a
      Peter Eisentraut 提交于
      Interfaced a lot of the custom tests to the config.cache, in the process
      made them separate macros and grouped them out into files. Made naming
      adjustments.
      
      Removed a couple of useless/unused configure tests.
      
      Disabled C++ by default. C++ is no more special than Perl, Python, and Tcl.
      And it breaks equally often. :(
      06cd0f1a
  18. 26 1月, 2000 1 次提交
    • B
      Add: · 5c25d602
      Bruce Momjian 提交于
        * Portions Copyright (c) 1996-2000, PostgreSQL, Inc
      
      to all files copyright Regents of Berkeley.  Man, that's a lot of files.
      5c25d602
  19. 16 7月, 1999 2 次提交
  20. 14 2月, 1999 1 次提交
  21. 01 9月, 1998 2 次提交
  22. 16 6月, 1998 1 次提交
  23. 08 9月, 1997 1 次提交
  24. 07 9月, 1997 1 次提交
  25. 27 12月, 1996 1 次提交
  26. 18 11月, 1996 1 次提交
  27. 06 11月, 1996 1 次提交
  28. 03 11月, 1996 1 次提交
  29. 09 7月, 1996 1 次提交