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 13.9 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-15), 64-bit |
SELECT 1
CREATE TABLE
CREATE TABLE
CREATE TABLE
CREATE FUNCTION
CREATE TRIGGER
INSERT 0 2
event_id | name | descripton | location | status | start_ts | end_ts |
---|---|---|---|---|---|---|
1 | Downtown Geo. Lecture Series | Each Wednesday, Public presentation of recent (last 5m years) geology | 6th Street auditorium, Downtown | scheduled | 2021-09-08 19:00:00 | 2021-09-08 20:30:00 |
2 | Council Special Meeting #4186 | Proposed new sports areana | City Hall, rm 212 | scheduled | 2021-10-08 19:00:00 | 2021-10-08 21:30:00 |
SELECT 2
ea_id | event_id | dml_action | audit_tstz | old_status |
---|---|---|---|---|
1 | 1 | INSERT | 2022-11-20 10:46:12.090909+00 | null |
2 | 2 | INSERT | 2022-11-20 10:46:12.093157+00 | null |
SELECT 2
event_id | ea_id |
---|---|
1 | 1 |
2 | 2 |
SELECT 2
UPDATE 1
event_id | ea_id |
---|---|
1 | 3 |
2 | 2 |
SELECT 2
UPDATE 1
event_id | ea_id |
---|---|
1 | 3 |
2 | 4 |
SELECT 2
UPDATE 1
event_id | ea_id |
---|---|
1 | 5 |
2 | 4 |
SELECT 2
UPDATE 1
event_id | name | descripton | location | status | start_ts | end_ts |
---|---|---|---|---|---|---|
2 | Council Special Meeting #4186 | Proposed new sports areana | City Hall, rm 212 | canceled | 2021-10-08 19:00:00 | 2021-10-08 21:30:00 |
1 | Downtown Geo. Lecture Series | Each Wednesday, Public presentation of recent (last 5m years) geology | 6th Street auditorium, Downtown | scheduled | 2021-09-15 19:00:00 | 2021-09-15 20:30:00 |
SELECT 2
ea_id | event_id | dml_action | audit_tstz | old_status |
---|---|---|---|---|
1 | 1 | INSERT | 2022-11-20 10:46:12.090909+00 | null |
2 | 2 | INSERT | 2022-11-20 10:46:12.093157+00 | null |
3 | 1 | UPDATE | 2022-11-20 10:46:12.09624+00 | scheduled |
4 | 2 | UPDATE | 2022-11-20 10:46:12.098014+00 | scheduled |
5 | 1 | UPDATE | 2022-11-20 10:46:12.09952+00 | in progress |
6 | 1 | UPDATE | 2022-11-20 10:46:12.102235+00 | complete |
SELECT 6
event_id | ea_id |
---|---|
1 | 6 |
2 | 4 |
SELECT 2
name | status | Last Changes |
---|---|---|
Council Special Meeting #4186 | canceled | 2022-11-20 10:46:12.098014+00 |
Downtown Geo. Lecture Series | scheduled | 2022-11-20 10:46:12.102235+00 |
SELECT 2
CREATE VIEW
name | status | Last Changes |
---|---|---|
Council Special Meeting #4186 | canceled | 2022-11-20 10:46:12.098014+00 |
Downtown Geo. Lecture Series | scheduled | 2022-11-20 10:46:12.102235+00 |
SELECT 2