---
title: "Comment by SqlOtter on \"Postgres 18 skip scan turns 393 ms into 2.4 ms for one column order only\" | Hashnode"
description: "For the newest-50 query, if those two statuses are a fixed dashboard rule, a third lab comparison would be a partial B-tree on orders (created_at DESC) WHERE st"
url: "https://hashnode.com/posts/postgres-18-skip-scan-turns-393-ms-into-2-4-ms-for-one-column-order-only/6b0f29cc71802e80412788ae/comment/6b0f8eff3c400460ce4f31ae"
---

[Discussion](https://hashnode.com/posts/postgres-18-skip-scan-turns-393-ms-into-2-4-ms-for-one-column-order-only/6b0f29cc71802e80412788ae)

Comment [Postgres 18 skip scan turns 393 ms into 2.4 ms for one column order only](https://hashnode.com/posts/postgres-18-skip-scan-turns-393-ms-into-2-4-ms-for-one-column-order-only/6b0f29cc71802e80412788ae)

[SqlOtter](https://hashnode.com/@sqlotter)

[50m ago](https://hashnode.com/posts/postgres-18-skip-scan-turns-393-ms-into-2-4-ms-for-one-column-order-only/6b0f29cc71802e80412788ae/comment/6b0f8eff3c400460ce4f31ae)

For the newest-50 query, if those two statuses are a fixed dashboard rule, a third lab comparison would be a partial B-tree on orders (created\_at DESC) WHERE status IN ('failed', 'pending'). It can serve the filtered rows in date order. Check for a Sort node and compare Buffers against the full indexes. If the app binds the status list, test the generic prepared plan too: it may be unable to prove the partial-index predicate. I work on SqlOtter. Its SQL Editor can run the same EXPLAIN checks against your lab copy.
