1. 27 6月, 2004 1 次提交
  2. 15 6月, 2004 1 次提交
  3. 03 6月, 2004 1 次提交
    • T
      Adjust our timezone library to use pg_time_t (typedef'd as int64) in · 921d749b
      Tom Lane 提交于
      place of time_t, as per prior discussion.  The behavior does not change
      on machines without a 64-bit-int type, but on machines with one, which
      is most, we are rid of the bizarre boundary behavior at the edges of
      the 32-bit-time_t range (1901 and 2038).  The system will now treat
      times over the full supported timestamp range as being in your local
      time zone.  It may seem a little bizarre to consider that times in
      4000 BC are PST or EST, but this is surely at least as reasonable as
      propagating Gregorian calendar rules back that far.
      
      I did not modify the format of the zic timezone database files, which
      means that for the moment the system will not know about daylight-savings
      periods outside the range 1901-2038.  Given the way the files are set up,
      it's not a simple decision like 'widen to 64 bits'; we have to actually
      think about the range of years that need to be supported.  We should
      probably inquire what the plans of the upstream zic people are before
      making any decisions of our own.
      921d749b
  4. 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
  5. 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
  6. 24 5月, 2004 1 次提交
  7. 18 5月, 2004 1 次提交
  8. 14 5月, 2004 1 次提交
  9. 07 5月, 2004 1 次提交
  10. 20 4月, 2004 1 次提交
    • B
      * Most changes are to fix warnings issued when compiling win32 · 31338352
      Bruce Momjian 提交于
      * removed a few redundant defines
      * get_user_name safe under win32
      * rationalized pipe read EOF for win32 (UPDATED PATCH USED)
      * changed all backend instances of sleep() to pg_usleep
      
          - except for the SLEEP_ON_ASSERT in assert.c, as it would exceed a
      32-bit long [Note to patcher: If a SLEEP_ON_ASSERT of 2000 seconds is
      acceptable, please replace with pg_usleep(2000000000L)]
      
      I added a comment to that part of the code:
      
          /*
           *  It would be nice to use pg_usleep() here, but only does 2000 sec
           *  or 33 minutes, which seems too short.
           */
          sleep(1000000);
      
      Claudio Natoli
      31338352
  11. 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
  12. 05 4月, 2004 1 次提交
  13. 28 3月, 2004 2 次提交
  14. 23 3月, 2004 1 次提交
  15. 16 3月, 2004 1 次提交
  16. 11 3月, 2004 1 次提交
  17. 09 3月, 2004 1 次提交
    • B
      Corrects a typo, introduces missing variables, and rearranges the · 8567bb2d
      Bruce Momjian 提交于
      initialization of stats process under EXEC_BACKEND.
      
      [A cleaner, rationalized approach to stat/backend/SSDataBase child
      processes under EXEC_BACKEND is on my TODO list. However this patch
      takes care of immediate concerns (ie. stats test now passes under
      win32)]
      
      Claudio Natoli
      8567bb2d
  18. 03 2月, 2004 1 次提交
  19. 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
  20. 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
  21. 11 1月, 2004 1 次提交
  22. 09 1月, 2004 1 次提交
  23. 07 1月, 2004 1 次提交
  24. 25 12月, 2003 1 次提交
  25. 21 12月, 2003 1 次提交
  26. 30 11月, 2003 1 次提交
    • P
      · 969685ad
      PostgreSQL Daemon 提交于
      $Header: -> $PostgreSQL Changes ...
      969685ad
  27. 16 11月, 2003 1 次提交
  28. 08 11月, 2003 1 次提交
  29. 25 9月, 2003 1 次提交
  30. 07 9月, 2003 1 次提交
  31. 13 8月, 2003 1 次提交
  32. 04 8月, 2003 1 次提交
  33. 28 7月, 2003 1 次提交
  34. 24 7月, 2003 1 次提交
    • T
      Have a go at fixing various outstanding portability issues in code that · df63503d
      Tom Lane 提交于
      was modified for IPv6.  Use a robust definition of struct sockaddr_storage,
      do a proper configure test to see if ss_len exists, don't assume that
      getnameinfo() will handle AF_UNIX sockets, don't trust getaddrinfo to
      return the protocol we ask for, etc.  This incorporates several outstanding
      patches from Kurt Roeckx, but I'm to blame for anything that doesn't
      work ...
      df63503d
  35. 23 7月, 2003 2 次提交
  36. 12 6月, 2003 1 次提交