1. 24 Sep, 2001 1 commit
  2. 24 May, 2001 1 commit
    • Bruce Momjian's avatar
      I haven't tried building postgres with the Watcom compiler for 7.1 because · f36fc7bb
      Bruce Momjian authored
      it does not support 64bit integers. AFAIK that's the default data type for
      OIDs, so I am not surprised that this does not work. Use gcc instead.
      BTW., 7.1 does not compile as is with gcc either, I believed the
      required patches made it into the 7.1.1 release but obviously I missed
      the deadline.
      Since the ports mailing list does not seem to be archived I have attached
      a copy of the patch (for 7.1 and 7.1.1).
      
      I've just performed a build of a Watcom compiled version and found a couple
      of bugs in the watcom specific part of that patch. Please use the attached
      version instead.
      
      Tegge, Bernd
      f36fc7bb
  3. 13 Apr, 2001 1 commit
  4. 25 Mar, 2001 1 commit
  5. 18 Feb, 2001 1 commit
    • Tom Lane's avatar
      Change s_lock to not use any zero-delay select() calls; these are just a · 33cc5d8a
      Tom Lane authored
      waste of cycles on single-CPU machines, and of dubious utility on multi-CPU
      machines too.
      Tweak s_lock_stuck so that caller can specify timeout interval, and
      increase interval before declaring stuck spinlock for buffer locks and XLOG
      locks.
      On systems that have fdatasync(), use that rather than fsync() to sync WAL
      log writes.  Ensure that WAL file is entirely allocated during XLogFileInit.
      33cc5d8a
  6. 16 Feb, 2001 1 commit
  7. 10 Feb, 2001 1 commit
  8. 02 Feb, 2001 1 commit
  9. 24 Jan, 2001 1 commit
  10. 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
  11. 19 Jan, 2001 6 commits
  12. 18 Jan, 2001 1 commit
  13. 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
  14. 29 Dec, 2000 1 commit
  15. 03 Dec, 2000 1 commit
  16. 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
  17. 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
  18. 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
  19. 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
  20. 12 Apr, 2000 1 commit
  21. 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
  22. 16 Dec, 1999 1 commit
  23. 23 Nov, 1999 1 commit
  24. 18 Nov, 1999 1 commit
  25. 06 Nov, 1999 1 commit
  26. 15 Jul, 1999 1 commit
  27. 13 Jul, 1999 2 commits
  28. 13 Jun, 1999 1 commit
  29. 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
  30. 13 Apr, 1999 1 commit
  31. 13 Feb, 1999 1 commit
  32. 15 Dec, 1998 1 commit
  33. 31 Oct, 1998 1 commit
  34. 28 Oct, 1998 1 commit