1. 11 Jun, 2002 1 commit
    • Jan Wieck's avatar
      Katherine Ward wrote: · 469cb65a
      Jan Wieck authored
      > Changes to avoid collisions with WIN32 & MFC names...
      > 1.  Renamed:
      >       a.  PROC => PGPROC
      >       b.  GetUserName() => GetUserNameFromId()
      >       c.  GetCurrentTime() => GetCurrentDateTime()
      >       d.  IGNORE => IGNORE_DTF in include/utils/datetime.h & utils/adt/datetim
      >
      > 2.  Added _P to some lex/yacc tokens:
      >       CONST, CHAR, DELETE, FLOAT, GROUP, IN, OUT
      
      Jan
      469cb65a
  2. 03 Mar, 2002 1 commit
    • Tom Lane's avatar
      Catcaches can now store negative entries as well as positive ones, to · 26ac2171
      Tom Lane authored
      speed up repetitive failed searches; per pghackers discussion in late
      January.  inval.c logic substantially simplified, since we can now treat
      inserts and deletes alike as far as inval events are concerned.  Some
      repair work needed in heap_create_with_catalog, which turns out to have
      been doing CommandCounterIncrement at a point where the new relation has
      non-self-consistent catalog entries.  With the new inval code, that
      resulted in assert failures during a relcache entry rebuild.
      26ac2171
  3. 05 Nov, 2001 1 commit
  4. 28 Oct, 2001 1 commit
  5. 25 Oct, 2001 1 commit
  6. 29 Sep, 2001 1 commit
    • Tom Lane's avatar
      Implement new 'lightweight lock manager' that's intermediate between · 499abb0c
      Tom Lane authored
      existing lock manager and spinlocks: it understands exclusive vs shared
      lock but has few other fancy features.  Replace most uses of spinlocks
      with lightweight locks.  All remaining uses of spinlocks have very short
      lock hold times (a few dozen instructions), so tweak spinlock backoff
      code to work efficiently given this assumption.  All per my proposal on
      pghackers 26-Sep-01.
      499abb0c
  7. 26 Aug, 2001 1 commit
  8. 06 Jul, 2001 1 commit
  9. 19 Jun, 2001 1 commit
    • Tom Lane's avatar
      Clean up some longstanding problems in shared-cache invalidation. · bbbc00af
      Tom Lane authored
      SI messages now include the relevant database OID, so that operations
      in one database do not cause useless cache flushes in backends attached
      to other databases.  Declare SI messages properly using a union, to
      eliminate the former assumption that Oid is the same size as int or Index.
      Rewrite the nearly-unreadable code in inval.c, and document it better.
      Arrange for catcache flushes at end of command/transaction to happen before
      relcache flushes do --- this avoids loading a new tuple into the catcache
      while setting up new relcache entry, only to have it be flushed again
      immediately.
      bbbc00af
  10. 26 Feb, 2001 1 commit
    • Tom Lane's avatar
      Implement COMMIT_SIBLINGS parameter to allow pre-commit delay to occur · 9c993658
      Tom Lane authored
      only if at least N other backends currently have open transactions.  This
      is not a great deal of intelligence about whether a delay might be
      profitable ... but it beats no intelligence at all.  Note that the default
      COMMIT_DELAY is still zero --- this new code does nothing unless that
      setting is changed.
      Also, mark ENABLEFSYNC as a system-wide setting.  It's no longer safe to
      allow that to be set per-backend, since we may be relying on some other
      backend's fsync to have synced the WAL log.
      9c993658
  11. 24 Jan, 2001 1 commit
  12. 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
  13. 12 Nov, 2000 1 commit
    • Tom Lane's avatar
      Keep track of the last active slot in the shared ProcState array, so · ebb0a201
      Tom Lane authored
      that search loops only have to scan that far and not through all maxBackends
      entries.  This eliminates a performance penalty for setting maxBackends
      much higher than the average number of active backends.  Also, eliminate
      no-longer-used 'backend tag' concept.  Remove setting of environment
      variables at backend start (except for CYR_RECODE), since none of them
      are being examined by the backend any longer.
      ebb0a201
  14. 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
  15. 24 Sep, 1999 1 commit
    • Tom Lane's avatar
      Several changes here, not very related but touching some of the same files. · e812458b
      Tom Lane authored
      * Buffer refcount cleanup (per my "progress report" to pghackers, 9/22).
      * Add links to backend PROC structs to sinval's array of per-backend info,
      and use these links for routines that need to check the state of all
      backends (rather than the slow, complicated search of the ShmemIndex
      hashtable that was used before).  Add databaseOID to PROC structs.
      * Use this to implement an interlock that prevents DESTROY DATABASE of
      a database containing running backends.  (It's a little tricky to prevent
      a concurrently-starting backend from getting in there, since the new
      backend is not able to lock anything at the time it tries to look up
      its database in pg_database.  My solution is to recheck that the DB is
      OK at the end of InitPostgres.  It may not be a 100% solution, but it's
      a lot better than no interlock at all...)
      * In ALTER TABLE RENAME, flush buffers for the relation before doing the
      rename of the physical files, to ensure we don't get failures later from
      mdblindwrt().
      * Update TRUNCATE patch so that it actually compiles against current
      sources :-(.
      You should do "make clean all" after pulling these changes.
      e812458b
  16. 15 Jul, 1999 1 commit
  17. 28 May, 1999 1 commit
    • Tom Lane's avatar
      Repair performance problem in SI segment manipulations: iterating · dc6d4049
      Tom Lane authored
      through MAXBACKENDS array entries used to be fine when MAXBACKENDS = 64.
      It's not so cool with MAXBACKENDS = 1024 (or more!), especially not in a
      frequently-used routine like SIDelExpiredDataEntries.  Repair by making
      procState array size be the soft MaxBackends limit rather than the hard
      limit, and by converting SIGetProcStateLimit() to a macro.
      dc6d4049
  18. 13 Feb, 1999 1 commit
  19. 01 Sep, 1998 1 commit
  20. 26 Feb, 1998 1 commit
  21. 24 Jan, 1998 1 commit
  22. 08 Sep, 1997 1 commit
  23. 07 Sep, 1997 1 commit
  24. 10 Nov, 1996 1 commit
  25. 05 Nov, 1996 1 commit
  26. 31 Oct, 1996 1 commit
  27. 28 Aug, 1996 1 commit
  28. 09 Jul, 1996 1 commit