aboutsummaryrefslogtreecommitdiff
path: root/src/sqliteInt.h
diff options
context:
space:
mode:
authordrh <>2022-11-30 19:11:31 +0000
committerdrh <>2022-11-30 19:11:31 +0000
commit2a757658a042586820c0f292d4292e052202fd3d (patch)
treeb40176c2d61631f36f08074fe843793f284bc28e /src/sqliteInt.h
parentec192e0659cd0fac1a29616c81a693f696f6f24a (diff)
downloadsqlite-2a757658a042586820c0f292d4292e052202fd3d.tar.gz
sqlite-2a757658a042586820c0f292d4292e052202fd3d.zip
Attempt to rationalize the bits associated with ".wheretrace". Provide
a decoder key in sqliteInt.h for what each bit is intended to do. FossilOrigin-Name: 8ec361695a107a94f2cf6a7fe509656a99d85d49bd7c74133c69903f059a2675
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r--src/sqliteInt.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index 7d7e5b56f..4711e4f09 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -1073,6 +1073,36 @@ extern u32 sqlite3WhereTrace;
# define WHERETRACE(K,X)
#endif
+/*
+** Bits for the sqlite3WhereTrace mask:
+**
+** (---any--) Top-level block structure
+** 0x-------F High-level debug messages
+** 0x----FFF- More detail
+** 0xFFFF---- Low-level debug messages
+**
+** 0x00000001 Code generation
+** 0x00000002 Solver
+** 0x00000004 Solver costs
+** 0x00000008 WhereLoop inserts
+**
+** 0x00000010 Display sqlite3_index_info xBestIndex calls
+** 0x00000020 Range an equality scan metrics
+** 0x00000040 IN operator decisions
+** 0x00000080 WhereLoop cost adjustements
+** 0x00000100
+** 0x00000200 Covering index decisions
+** 0x00000400 OR optimization
+** 0x00000800 Index scanner
+** 0x00001000 More details associated with code generation
+** 0x00002000
+** 0x00004000 Show all WHERE terms at key points
+** 0x00008000 Show the full SELECT statement at key places
+**
+** 0x00010000 Show more detail when printing WHERE terms
+** 0x00020000 Show WHERE terms returned from whereScanNext()
+*/
+
/*
** An instance of the following structure is used to store the busy-handler