*** ./backend/storage/smgr/md.c.orig Sun Mar 14 10:41:08 1999 --- ./backend/storage/smgr/md.c Sun Mar 14 10:54:07 1999 *************** *** 66,86 **** * has to be calculated at compile time. Otherwise, the file * size limit would not work out to 2-gig (2147483648). * ! * The number needs to be (2 ** 31) / BLCKSZ, but to be keep ! * the math under MAXINT, pre-divide by 256 and use ... * ! * (((2 ** 23) / BLCKSZ) * (2 ** 8)) * * 07 Jan 98 darrenk * * Now possibly let the OS handle it... * * 19 Mar 98 darrenk * */ #ifndef LET_OS_MANAGE_FILESIZE ! #define RELSEG_SIZE ((8388608 / BLCKSZ) * 256) #endif /* routines declared here */ --- 66,94 ---- * has to be calculated at compile time. Otherwise, the file * size limit would not work out to 2-gig (2147483648). * ! * The number needs to be MAX_FILE_SIZE / BLCKSZ, but to be ! * keep the math under MAXINT, pre-divide by 256 and use ... * ! * (7812500 / BLCKSZ) * 256 * * 07 Jan 98 darrenk + * 07 Feb 99 peter (rewrite) * * Now possibly let the OS handle it... * * 19 Mar 98 darrenk * + * Reduced the maximum file size from 2147483648 (2Gb) to 1073741824 (1Gb) + * to prevent a possible overflow in the OS (You can't have a file exactly + * 2Gb in size). + * + * 07 Feb 99 peter + * 14 Mar 99 peter (resubmitted lost patch) + * */ #ifndef LET_OS_MANAGE_FILESIZE ! #define RELSEG_SIZE ((4194304 / BLCKSZ) * 256) #endif /* routines declared here */