Lines Matching refs:pIndex
1048 for(pIdx=pTab->pIndex; pIdx; pIdx=pIdx->pNext){ in analyzeOneTable()
1468 Index *pIndex /* Handle extra flags for this index, if not NULL */ argument
1498 assert( pIndex!=0 ); {
1500 if( pIndex ){
1502 pIndex->bUnordered = 0;
1503 pIndex->noSkipScan = 0;
1506 pIndex->bUnordered = 1;
1510 pIndex->szIdxRow = sqlite3LogEst(sz);
1512 pIndex->noSkipScan = 1;
1516 pIndex->pTable->costMult = sqlite3LogEst(sqlite3Atoi(z+9));
1538 Index *pIndex; local
1553 pIndex = 0;
1555 pIndex = sqlite3PrimaryKeyIndex(pTable);
1557 pIndex = sqlite3FindIndex(pInfo->db, argv[1], pInfo->zDatabase);
1561 if( pIndex ){
1563 int nCol = pIndex->nKeyCol+1;
1568 if( pIndex->aiRowEst==0 ){
1569 pIndex->aiRowEst = (tRowcnt*)sqlite3MallocZero(sizeof(tRowcnt) * nCol);
1570 if( pIndex->aiRowEst==0 ) sqlite3OomFault(pInfo->db);
1572 aiRowEst = pIndex->aiRowEst;
1574 pIndex->bUnordered = 0;
1575 decodeIntArray((char*)z, nCol, aiRowEst, pIndex->aiRowLogEst, pIndex);
1576 pIndex->hasStat1 = 1;
1577 if( pIndex->pPartIdxWhere==0 ){
1578 pTable->nRowLogEst = pIndex->aiRowLogEst[0];