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?.
SELECT 175939
CREATE EXTENSION
dblink_connect |
---|
OK |
SELECT 1
dblink_exec |
---|
CREATE SCHEMA |
SELECT 1
dblink_exec |
---|
SELECT 87372 |
SELECT 1
dblink_exec |
---|
CREATE VIEW |
SELECT 1
dblink_disconnect |
---|
OK |
SELECT 1
CREATE DATABASE
CREATE EXTENSION
CREATE SERVER
CREATE USER MAPPING
CREATE FOREIGN TABLE
relation | readable_size | size |
---|---|---|
neighbour_schema.neighbour_table | 6664 kB | 6823936 |
neighbour_schema.v_pg_total_relation_sizes | 0 bytes | 0 |
SELECT 2
CREATE VIEW
relation | readable_size | size |
---|---|---|
public.local_table | 13 MB | 13639680 |
public.dblink_pkey_results | 0 bytes | 0 |
public.fdw_v_pg_total_relation_sizes | 0 bytes | 0 |
public.v_pg_total_relation_sizes | 0 bytes | 0 |
SELECT 4
SELECT 6
REFRESH MATERIALIZED VIEW
dbname | relation | readable_size | size |
---|---|---|---|
postgres | public.local_table | 13 MB | 13639680 |
neighbour1_db | neighbour_schema.neighbour_table | 6664 kB | 6823936 |
postgres | public.f_v_cluster_pg_total_relation_sizes | 16 kB | 16384 |
postgres | public.pg_temp_16464 | 8192 bytes | 8192 |
postgres | public.dblink_pkey_results | 0 bytes | 0 |
postgres | public.fdw_v_pg_total_relation_sizes | 0 bytes | 0 |
postgres | public.v_pg_total_relation_sizes | 0 bytes | 0 |
neighbour1_db | neighbour_schema.v_pg_total_relation_sizes | 0 bytes | 0 |
SELECT 8