/ Check-in [d08b72c3]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Increase the size of the reference count on Table objects to 32 bits.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: d08b72c38ff6fae6ddf7dc84a54f6d7189876289
User & Date: drh 2016-12-14 13:54:25
Context
2016-12-14
14:07
Refactor the Table.nRef field as Table.nTabRef for easier grepping. check-in: 9cae4c2e user: drh tags: trunk
13:54
Increase the size of the reference count on Table objects to 32 bits. check-in: d08b72c3 user: drh tags: trunk
11:39
Fix the configure makefile to align it with the manual makefile. Unsaved changes from the previous check-in. check-in: 00a184b6 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Show Whitespace Changes Patch

Changes to src/sqliteInt.h.

  1797   1797     Index *pIndex;       /* List of SQL indexes on this table. */
  1798   1798     Select *pSelect;     /* NULL for tables.  Points to definition if a view. */
  1799   1799     FKey *pFKey;         /* Linked list of all foreign keys in this table */
  1800   1800     char *zColAff;       /* String defining the affinity of each column */
  1801   1801     ExprList *pCheck;    /* All CHECK constraints */
  1802   1802                          /*   ... also used as column name list in a VIEW */
  1803   1803     int tnum;            /* Root BTree page for this table */
         1804  +  u32 nRef;            /* Number of pointers to this Table */
  1804   1805     i16 iPKey;           /* If not negative, use aCol[iPKey] as the rowid */
  1805   1806     i16 nCol;            /* Number of columns in this table */
  1806         -  u16 nRef;            /* Number of pointers to this Table */
  1807   1807     LogEst nRowLogEst;   /* Estimated rows in table - from sqlite_stat1 table */
  1808   1808     LogEst szTabRow;     /* Estimated size of each table row in bytes */
  1809   1809   #ifdef SQLITE_ENABLE_COSTMULT
  1810   1810     LogEst costMult;     /* Cost multiplier for using this table */
  1811   1811   #endif
  1812   1812     u8 tabFlags;         /* Mask of TF_* values */
  1813   1813     u8 keyConf;          /* What to do in case of uniqueness conflict on iPKey */