| 1876 | |
| 1877 | |
| 1878 | void |
| 1879 | ExplainCompositeScanToWriter(IndexScanDesc scan, pgbson_writer *writer) |
| 1880 | { |
| 1881 | if (!IsCompositeOpClass(scan->indexRelation)) |
| 1882 | { |
| 1883 | return; |
| 1884 | } |
| 1885 | |
| 1886 | if (scan->indexRelation->rd_opcoptions != NULL) |
| 1887 | { |
| 1888 | pgbson_writer keyWriter; |
| 1889 | PgbsonWriterStartDocument(writer, "keyPattern", -1, &keyWriter); |
| 1890 | SerializeCompositeIndexKeyForExplainToWriter( |
| 1891 | scan->indexRelation->rd_opcoptions[0], &keyWriter); |
| 1892 | PgbsonWriterEndDocument(writer, &keyWriter); |
| 1893 | } |
| 1894 | |
| 1895 | ExplainWriterFuncs writerFuncs = GetForBsonWriter(); |
| 1896 | ExplainCompositeScanCore(scan, writer, &writerFuncs); |
| 1897 | } |
| 1898 | |
| 1899 | |
| 1900 | void |
no test coverage detected