1. 02 12月, 2003 7 次提交
    • B
      Try to reduce confusion about what is a lock method identifier, a lock · e7ca8674
      Bruce Momjian 提交于
      method control structure, or a table of control structures.
      
      . Use type LOCKMASK where an int is not a counter.
      
      . Get rid of INVALID_TABLEID, use INVALID_LOCKMETHOD instead.
      
      . Use INVALID_LOCKMETHOD instead of (LOCKMETHOD) NULL, because
        LOCKMETHOD is not a pointer.
      
      . Define and use macro LockMethodIsValid.
      
      . Rename LOCKMETHOD to LOCKMETHODID.
      
      . Remove global variable LongTermTableId in lmgr.c, because it is
        never used.
      
      . Make LockTableId static in lmgr.c, because it is used nowhere else.
        Why not remove it and use DEFAULT_LOCKMETHOD?
      
      . Rename the lock method control structure from LOCKMETHODTABLE to
        LockMethodData.  Introduce a pointer type named LockMethod.
      
      . Remove elog(FATAL) after InitLockTable() call in
        CreateSharedMemoryAndSemaphores(), because if something goes wrong,
        there is elog(FATAL) in LockMethodTableInit(), and if this doesn't
        help, an elog(ERROR) in InitLockTable() is promoted to FATAL.
      
      . Make InitLockTable() void, because its only caller does not use its
        return value any more.
      
      . Rename variables in lock.c to avoid statements like
              LockMethodTable[NumLockMethods] = lockMethodTable;
              lockMethodTable = LockMethodTable[lockmethod];
      
      . Change LOCKMETHODID type to uint16 to fit into struct LOCKTAG.
      
      . Remove static variables BITS_OFF and BITS_ON from lock.c, because
        I agree to this doubt:
       * XXX is a fetch from a static array really faster than a shift?
      
      . Define and use macros LOCKBIT_ON/OFF.
      
      
      Manfred Koizar
      e7ca8674
    • B
    • B
      Attached is a patch implementing factorial(), returning numeric. Points · 04a4821a
      Bruce Momjian 提交于
      to note:
      
      1) arttype is numeric. I thought this was the best way of allowing
      arbitarily large factorials, even though factorial(2^63) is a large
      number. Happy to change to integers if this is overkill.
      2) since we're accepting numeric arguments, the patch tests for floats.
      If a numeric is passed with non-zero decimal portion, an error is raised
      since (from memory) they are undefined.
      
      Gavin Sherry
      04a4821a
    • T
      Minor wordsmithing in datetime docs to try to address gripes raised by · af036638
      Tom Lane 提交于
      cnliou.
      af036638
    • T
      netmask() and hostmask() functions should return maximum-length masklen, · c5336a89
      Tom Lane 提交于
      per gripe from Joe Sunday.
      c5336a89
    • T
      Fix typos noted by Halley Pacheco de Oliveira. · 3e5da0a8
      Tom Lane 提交于
      3e5da0a8
    • T
      Force zero_damaged_pages to be effectively ON during recovery from WAL, · 0902ece5
      Tom Lane 提交于
      since there is no need to worry about damaged pages when we are going to
      overwrite them anyway from the WAL.  Per recent discussion.
      0902ece5
  2. 01 12月, 2003 2 次提交
  3. 30 11月, 2003 16 次提交
  4. 29 11月, 2003 4 次提交
  5. 28 11月, 2003 6 次提交
  6. 27 11月, 2003 2 次提交
  7. 26 11月, 2003 3 次提交