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?.
version |
---|
PostgreSQL 14.10 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-20), 64-bit |
SELECT 1
SET
timestamptz |
---|
2017-05-01 21:16:35+00 |
SELECT 1
CREATE TABLE
CREATE FUNCTION
CREATE TRIGGER
INSERT 0 1
INSERT 0 1
org | tsz | ts | offsettz |
---|---|---|---|
1999-01-08 04:05:06-8:00 | 1999-01-08 12:05:06+00 | 1999-01-08 12:05:06 | -08:00:00 |
2017-05-01T16:16:35-05:00 | 2017-05-01 21:16:35+00 | 2017-05-01 21:16:35 | -05:00:00 |
SELECT 2
SET
TimeZone |
---|
Egypt |
SHOW
INSERT 0 1
org | tsz | ts | offsettz |
---|---|---|---|
1999-01-08 04:05:06-8:00 | 1999-01-08 14:05:06+02 | 1999-01-08 12:05:06 | -08:00:00 |
2017-05-01T16:16:35-05:00 | 2017-05-01 23:16:35+02 | 2017-05-01 21:16:35 | -05:00:00 |
2017-05-11T16:16:35-05:00 | 2017-05-11 21:16:35+02 | 2017-05-11 21:16:35 | -05:00:00 |
SELECT 3