1. 16 Feb, 2001 1 commit
  2. 10 Feb, 2001 1 commit
  3. 02 Feb, 2001 1 commit
  4. 24 Jan, 2001 1 commit
  5. 20 Jan, 2001 1 commit
    • Tom Lane's avatar
      Still further tweaking of s_lock assembler: do not assume that leading · a7ea9f46
      Tom Lane authored
      whitespace is unimportant in assembly code.  Also, move VAX definition
      of typedef slock_t to port header files to be like all the other ports.
      Note that netbsd.h and openbsd.h are now identical, and I rather think
      that freebsd.h is broken in the places where it doesn't agree --- but
      I'll leave it to the freebsders to look at that.
      a7ea9f46
  6. 19 Jan, 2001 6 commits
  7. 18 Jan, 2001 1 commit
  8. 30 Dec, 2000 1 commit
    • Tom Lane's avatar
      Clean up spinlock assembly code slightly (just cosmetic improvements) · f83b2215
      Tom Lane authored
      for Alpha gcc case.  For Alpha non-gcc case, replace use of
      __INTERLOCKED_TESTBITSS_QUAD builtin with __LOCK_LONG_RETRY and
      __UNLOCK_LONG.  The former does not execute an MB instruction and
      therefore was guaranteed not to work on multiprocessor machines.
      The LOCK_LONG builtins produce code that is the same in all essential
      details as the gcc assembler code.
      f83b2215
  9. 29 Dec, 2000 1 commit
  10. 03 Dec, 2000 1 commit
  11. 28 Nov, 2000 1 commit
    • Tom Lane's avatar
      Significant cleanups in SysV IPC handling (shared mem and semaphores). · c715fdea
      Tom Lane authored
      IPC key assignment will now work correctly even when multiple postmasters
      are using same logical port number (which is possible given -k switch).
      There is only one shared-mem segment per postmaster now, not 3.
      Rip out broken code for non-TAS case in bufmgr and xlog, substitute a
      complete S_LOCK emulation using semaphores in spin.c.  TAS and non-TAS
      logic is now exactly the same.
      When deadlock is detected, "Deadlock detected" is now the elog(ERROR)
      message, rather than a NOTICE that comes out before an unhelpful ERROR.
      c715fdea
  12. 22 Oct, 2000 1 commit
    • Peter Eisentraut's avatar
      Makeover for Unixware 7.1.1 · fba790ad
      Peter Eisentraut authored
      * Makefile: Add more standard targets.  Improve shell redirection in GNU
      make detection.
      * src/backend/access/transam/rmgr.c: Fix incorrect(?) C.
      * src/backend/libpq/pqcomm.c (StreamConnection): Work around accept() bug.
      * src/include/port/unixware.h: ...with help from here.
      * src/backend/nodes/print.c (plannode_type): Remove some "break"s after
      "return"s.
      * src/backend/tcop/dest.c (DestToFunction): ditto.
      * src/backend/nodes/readfuncs.c: Add proper prototypes.
      * src/backend/utils/adt/numutils.c (pg_atoi): Cope specially with strtol()
      setting EINVAL. This saves us from creating an extra set of regression test
      output for the affected systems.
      * src/include/storage/s_lock.h (tas): Correct prototype.
      * src/interfaces/libpq/fe-connect.c (parseServiceInfo): Don't use variable
      as dimension in array definition.
      * src/makefiles/Makefile.unixware: Add support for GCC.
      * src/template/unixware: same here
      * src/test/regress/expected/abstime-solaris-1947.out: Adjust whitespace.
      * src/test/regress/expected/horology-solaris-1947.out: Part of this file
      was evidently missing.
      * src/test/regress/pg_regress.sh: Fix shell.  mkdir -p returns non-zero if
      the directory exists.
      * src/test/regress/resultmap: Add entries for Unixware.
      fba790ad
  13. 08 Oct, 2000 1 commit
    • Bruce Momjian's avatar
      Tom Lane wrote: · be582825
      Bruce Momjian authored
      > > For a while I though it might be because we are using an alpha TAS in
      > > the spinlock rather than the old semaphore. I replaced our spinlock
      > > with the standard one and it made no difference. We have been running
      > > with our spinlock implementation for nearly 2 months on a production
      > > database now without a hitch, so I think it is ok. Did I ever submit
      > > any patches for the Alpha spinlock?
      >
      > Not that I recall.  We did get some advice from some Alpha gurus at DEC
      > who seemed to think the existing TAS code is OK.  What was it that you
      > felt needed to be improved?
      
      The current code uses semaphores, which has the advantage that it works
      well even on multi-processor machines, but the disadvantage that it is not
      the fastest way possible. Writing a spinlock on Alpha for SMP machines is
      very difficult, as you need to deal with memory barriers. A real mess. But
      then one of the people at Compaq pointed out to us that there is a
      ready-made routine on Alpha. We implemented it with the two patches below.
      I ran tests with lots of parallel back-ends and got around a 10% speed
      increase. I include the two patches. Perhaps some of the other people
      running Tru64 can have a look at these as well.
      
      Cheers,
      
      Adriaan Joubert
      be582825
  14. 05 Jul, 2000 1 commit
    • Bruce Momjian's avatar
      attached to this mail is a patch from a colleague that makes · 411cf2da
      Bruce Momjian authored
      PostgreSQL-7.0.2 run on Linux for the Intel-IA64 architecture. It also
      fixes a bug in the configure scripts that caused configure to fail on
      the fcntl(F_SETLK) test.
      
      This fix triggered a bug in the fcntl(F_SETLK) code of the Linux
      kernel when used on unix domain sockets resulting in postmaster to
      segfault immediately after startup. There is a fix available and
      included in the kernel that will be on SuSE Linux 7.0, but kernels <=
      2.2.16 still have this bug.
      
      Reinhard Max
      411cf2da
  15. 12 Apr, 2000 1 commit
  16. 26 Jan, 2000 1 commit
    • Bruce Momjian's avatar
      Add: · 5c25d602
      Bruce Momjian authored
        * Portions Copyright (c) 1996-2000, PostgreSQL, Inc
      
      to all files copyright Regents of Berkeley.  Man, that's a lot of files.
      5c25d602
  17. 16 Dec, 1999 1 commit
  18. 23 Nov, 1999 1 commit
  19. 18 Nov, 1999 1 commit
  20. 06 Nov, 1999 1 commit
  21. 15 Jul, 1999 1 commit
  22. 13 Jul, 1999 2 commits
  23. 13 Jun, 1999 1 commit
  24. 10 Jun, 1999 1 commit
    • Bruce Momjian's avatar
      · d852d31e
      Bruce Momjian authored
      This patch should enable 6.5 to build on Motorola 68000 architecture.
      It comes from Roman Hodek <Roman.Hodek@informatik.uni-erlangen.de>.
      d852d31e
  25. 13 Apr, 1999 1 commit
  26. 13 Feb, 1999 1 commit
  27. 15 Dec, 1998 1 commit
  28. 31 Oct, 1998 1 commit
  29. 28 Oct, 1998 1 commit
  30. 27 Oct, 1998 1 commit
  31. 02 Oct, 1998 2 commits
    • Bruce Momjian's avatar
      Fixes for Irix from Robert Bruccoleri · 9b7c6ee0
      Bruce Momjian authored
      9b7c6ee0
    • Bruce Momjian's avatar
      · 731ea807
      Bruce Momjian authored
      Here's the new diff for getting the NS32K assembly code into the
      spin-locks.  Notice that it's now inline assembler in s_lock.h,
      rather than seperate code in s_lock.c.  It also shrank a little
      bit...  Just rip out the S_LOCK() define and insert the tas() inline
      function.  Please let me know if there are any problems with it.
      
      Jon Buller
      731ea807
  32. 01 Oct, 1998 1 commit
  33. 21 Sep, 1998 1 commit