add batch remove batch split batch comment selection show hidden batches hide batch highlight batch
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Help with an interesting Postgres question: Why isn't an Index Only Scan used on a partition accessed via the parent table?.
CREATE SCHEMA
CREATE TABLE
contributor_prescription date_publication_prescription
john 2023-10-22
john 2023-10-21
john 2023-10-20
john 2023-10-19
paul 2023-10-24
paul 2023-10-23
paul 2023-10-21
paul 2023-10-18
INSERT 0 8
contributor_prescription date_publication_prescription
john 2023-10-22
john 2023-10-21
john 2023-10-20
john 2023-10-22
john 2023-10-21
john 2023-10-20
john 2023-10-22
john 2023-10-21
john 2023-10-20
john 2023-10-22
john 2023-10-21
john 2023-10-20
paul 2023-10-24
paul 2023-10-23
paul 2023-10-21
paul 2023-10-24
paul 2023-10-23
paul 2023-10-21
paul 2023-10-24
paul 2023-10-23
paul 2023-10-21
paul 2023-10-24
paul 2023-10-23
paul 2023-10-21
SELECT 24
contributor_prescription date_publication_prescription
john 2023-10-22
john 2023-10-21
john 2023-10-20
paul 2023-10-24
paul 2023-10-23
paul 2023-10-21
SELECT 6
contributor_prescription date_publication_prescription
john 2023-10-22
john 2023-10-21
john 2023-10-20
paul 2023-10-24
paul 2023-10-23
paul 2023-10-21
SELECT 6
contributor_prescription unnest
john 2023-10-22
john 2023-10-21
john 2023-10-20
paul 2023-10-24
paul 2023-10-23
paul 2023-10-21
SELECT 6