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 TABLE
CREATE TABLE
INSERT 0 2
CREATE FUNCTION
CREATE TRIGGER
INSERT 0 2
id | geom | geom_closest_downstream | geom_closest_upstream |
---|---|---|---|
1 | 0105000020950B00000100000001020000000200000046243EC3282608418D28242D6C1B3D4128531BE88A2608418284B3EF561B3D41 | 0104000020950B00000100000001010000001026FA48113B07410D6A8412CF1D3D41 | 0104000020950B00000100000001010000001026FA48113B07410D6A8412CF1D3D41 |
2 | 0105000020950B0000010000000102000000020000004ABF2CBC86B108413B93650696323D413C487924CCB10841925D490495323D41 | 0104000020950B00000100000001010000001026FA48113B07410D6A8412CF1D3D41 | 0104000020950B00000100000001010000001026FA48113B07410D6A8412CF1D3D41 |
SELECT 2