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 FUNCTION
fun1 |
---|
SELECT 1
col1 | col2 | col3 |
---|---|---|
turow1@af.com | f | t |
xy2@af.com | f | t |
SELECT 2
CREATE PROCEDURE
CALL
col1 | col2 | col3 |
---|---|---|
turow1@af.com | f | t |
xy2@af.com | f | t |
turow2@af.com | f | t |
xy2@af.com | f | t |
SELECT 4
CREATE PROCEDURE
CALL
col1 | col2 | col3 |
---|---|---|
turow1@af.com | f | t |
xy2@af.com | f | t |
turow2@af.com | f | t |
xy2@af.com | f | t |
turow3@af.com | f | t |
xy2@af.com | f | t |
SELECT 6