SQLite VDBE opcode

MaxPgcnt

Try to set the maximum page count for database P1 to the value in P3.

An example

1 of the 178 statements we compiled against the sample database use MaxPgcnt. This is the one with the shortest program; the rows that use MaxPgcnt are highlighted.

PRAGMA max_page_count = 1000
addropcodep1p2p3p4p5
0Init0500
1Expire1100
2MaxPgcnt0310000
3ResultRow3100
4Halt0000
5Transaction00101
6Goto0100

Open it in the EXPLAIN visualizer →

Also in this program: Expire, Goto, Halt, Init, ResultRow, Transaction.

What the SQLite documentation says

Try to set the maximum page count for database P1 to the value in P3. Do not let the maximum page count fall below the current page count and do not change the maximum page count value if P3==0.

Store the maximum page count after the change in register P2.

From sqlite.org's list of opcodes for SQLite 3.54.1, in the public domain. Opcodes are not a stable interface and change between releases.

← MakeRecord · MemMax →