1. 28 7月, 2003 1 次提交
  2. 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
  3. 23 7月, 2003 2 次提交
  4. 12 6月, 2003 1 次提交
  5. 16 5月, 2003 1 次提交
    • B
      Allow Win32 to compile under MinGW. Major changes are: · 12c94238
      Bruce Momjian 提交于
              Win32 port is now called 'win32' rather than 'win'
              add -lwsock32 on Win32
              make gethostname() be only used when kerberos4 is enabled
              use /port/getopt.c
              new /port/opendir.c routines
              disable GUC unix_socket_group on Win32
              convert some keywords.c symbols to KEYWORD_P to prevent conflict
              create new FCNTL_NONBLOCK macro to turn off socket blocking
              create new /include/port.h file that has /port prototypes, move
                out of c.h
              new /include/port/win32_include dir to hold missing include files
              work around ERROR being defined in Win32 includes
      12c94238
  6. 28 4月, 2003 1 次提交
    • T
      Put back encoding-conversion step in processing of incoming queries; · 982430f8
      Tom Lane 提交于
      I had inadvertently omitted it while rearranging things to support
      length-counted incoming messages.  Also, change the parser's API back
      to accepting a 'char *' query string instead of 'StringInfo', as the
      latter wasn't buying us anything except overhead.  (I think when I put
      it in I had some notion of making the parser API 8-bit-clean, but
      seeing that flex depends on null-terminated input, that's not really
      ever gonna happen.)
      982430f8
  7. 26 4月, 2003 1 次提交
  8. 25 4月, 2003 1 次提交
  9. 20 3月, 2003 1 次提交
  10. 25 10月, 2002 1 次提交
  11. 22 10月, 2002 1 次提交
  12. 26 9月, 2002 1 次提交
    • T
      Remove ShutdownBufferPoolAccess exit callback, and do the work in · 8a6fab41
      Tom Lane 提交于
      ProcKill instead, where we still have a PGPROC with which to wait on
      LWLocks.  This fixes 'can't wait without a PROC structure' failures
      occasionally seen during backend shutdown (I'm surprised they weren't
      more frequent, actually).  Add an Assert() to LWLockAcquire to help
      catch any similar mistakes in future.  Fix failure to update MyProcPid
      for standalone backends and pgstat processes.
      8a6fab41
  13. 06 9月, 2002 1 次提交
  14. 05 9月, 2002 1 次提交
  15. 02 9月, 2002 2 次提交
  16. 29 8月, 2002 1 次提交
  17. 04 8月, 2002 1 次提交
  18. 20 7月, 2002 1 次提交
    • B
      oid is needed, it is added at the end of the struct (after the null · b0f5086e
      Bruce Momjian 提交于
      bitmap, if present).
      
      Per Tom Lane's suggestion the information whether a tuple has an oid
      or not is carried in the tuple descriptor.  For debugging reasons
      tdhasoid is of type char, not bool.  There are predefined values for
      WITHOID, WITHOUTOID and UNDEFOID.
      
      This patch has been generated against a cvs snapshot from last week
      and I don't expect it to apply cleanly to current sources.  While I
      post it here for public review, I'm working on a new version against a
      current snapshot.  (There's been heavy activity recently; hope to
      catch up some day ...)
      
      This is a long patch;  if it is too hard to swallow, I can provide it
      in smaller pieces:
      
      Part 1:  Accessor macros
      Part 2:  tdhasoid in TupDesc
      Part 3:  Regression test
      Part 4:  Parameter withoid to heap_addheader
      Part 5:  Eliminate t_oid from HeapTupleHeader
      
      Part 2 is the most hairy part because of changes in the executor and
      even in the parser;  the other parts are straightforward.
      
      Up to part 4 the patched postmaster stays binary compatible to
      databases created with an unpatched version.  Part 5 is small (100
      lines) and finally breaks compatibility.
      
      Manfred Koizar
      b0f5086e
  19. 21 5月, 2002 1 次提交
    • T
      Restructure indexscan API (index_beginscan, index_getnext) per · 44fbe20d
      Tom Lane 提交于
      yesterday's proposal to pghackers.  Also remove unnecessary parameters
      to heap_beginscan, heap_rescan.  I modified pg_proc.h to reflect the
      new numbers of parameters for the AM interface routines, but did not
      force an initdb because nothing actually looks at those fields.
      44fbe20d
  20. 05 5月, 2002 1 次提交
  21. 03 4月, 2002 1 次提交
  22. 06 3月, 2002 1 次提交
    • B
      Change made to elog: · 92288a1c
      Bruce Momjian 提交于
      o  Change all current CVS messages of NOTICE to WARNING.  We were going
      to do this just before 7.3 beta but it has to be done now, as you will
      see below.
      
      o Change current INFO messages that should be controlled by
      client_min_messages to NOTICE.
      
      o Force remaining INFO messages, like from EXPLAIN, VACUUM VERBOSE, etc.
      to always go to the client.
      
      o Remove INFO from the client_min_messages options and add NOTICE.
      
      Seems we do need three non-ERROR elog levels to handle the various
      behaviors we need for these messages.
      
      Regression passed.
      92288a1c
  23. 08 2月, 2002 1 次提交
  24. 04 12月, 2001 1 次提交
  25. 27 11月, 2001 1 次提交
  26. 25 10月, 2001 1 次提交
  27. 23 10月, 2001 1 次提交
    • T
      Further cleanup of ps_status setup code. On platforms where the · 94daee3c
      Tom Lane 提交于
      environment strings need to be moved around, do so when called from
      initial startup (main.c), not in init_ps_status.  This eliminates the
      former risk of invalidating saved environment-string pointers, since
      no code has yet had a chance to grab any such pointers when main.c
      is running.
      94daee3c
  28. 21 10月, 2001 1 次提交
  29. 17 10月, 2001 1 次提交
  30. 06 10月, 2001 1 次提交
    • T
      Further cleanup of dynahash.c API, in pursuit of portability and · 8a52b893
      Tom Lane 提交于
      readability.  Bizarre '(long *) TRUE' return convention is gone,
      in favor of just raising an error internally in dynahash.c when
      we detect hashtable corruption.  HashTableWalk is gone, in favor
      of using hash_seq_search directly, since it had no hope of working
      with non-LONGALIGNable datatypes.  Simplify some other code that was
      made undesirably grotty by promixity to HashTableWalk.
      8a52b893
  31. 02 10月, 2001 1 次提交
  32. 01 10月, 2001 1 次提交
    • T
      Another round of cleanups for dynahash.c (maybe it's finally clean of · 5999e78f
      Tom Lane 提交于
      portability issues).  Caller-visible data structures are now allocated
      on MAXALIGN boundaries, allowing safe use of datatypes wider than 'long'.
      Rejigger hash_create API so that caller specifies size of key and
      total size of entry, not size of key and size of rest of entry.
      This simplifies life considerably since each number is just a sizeof(),
      and padding issues etc. are taken care of automatically.
      5999e78f
  33. 24 8月, 2001 1 次提交
  34. 05 8月, 2001 1 次提交
    • T
      Endeavor to make pgstats buffer process (a) safe and (b) useful. · e8f10973
      Tom Lane 提交于
      Make sure it exits immediately when collector process dies --- in old code,
      buffer process would hang around and compete with the new buffer process
      for packets.  Make sure it doesn't block on writing the pipe when the
      collector falls more than a pipeload behind.  Avoid leaking pgstats FDs
      into every backend.
      e8f10973
  35. 04 8月, 2001 1 次提交
    • T
      Fix handling of SIGCHLD, per recent pghackers discussion: on some · dad8e410
      Tom Lane 提交于
      platforms system(2) gets confused unless the signal handler is set to
      SIG_DFL, not SIG_IGN.  pgstats.c now uses pqsignal() as it should,
      not signal().  Also, arrange for the stats collector process to show
      a reasonable ID in 'ps', rather than looking like a postmaster.
      dad8e410
  36. 05 7月, 2001 1 次提交
  37. 01 7月, 2001 1 次提交
  38. 30 6月, 2001 1 次提交