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?.
TimeZone |
---|
UTC |
SHOW
CREATE TABLE
INSERT 0 4
CREATE TABLE
INSERT 0 4
client_timezone | id | pub_date |
---|---|---|
UTC | 1 | 2023-11-05 01:00:00+00 |
SELECT 1
SET
client_timezone | id | pub_date |
---|---|---|
Japan | 1 | 2023-11-05 10:00:00+09 |
Japan | 2 | 2023-11-05 08:00:00+09 |
Japan | 3 | 2023-11-05 00:00:00+09 |
SELECT 3
client_timezone | id | pub_date |
---|---|---|
Japan | 1 | 2023-11-05 10:00:00+09 |
SELECT 1
id | timezone |
---|---|
1 | 2023-11-05 01:00:00 |
SELECT 1
SET
client_timezone | id | pub_date |
---|---|---|
UTC | 1 | 2023-11-05 01:00:00+00 |
SELECT 1