add batch remove batch split batch comment selection show hidden batches hide batch highlight batch
db<>fiddle
donate feedback about
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 INDEX
schemaname tablename indexname tablespace indexdef
public test test_pkey null CREATE UNIQUE INDEX test_pkey ON public.test USING btree (id)
public test test_str_key null CREATE UNIQUE INDEX test_str_key ON public.test USING btree (str)
public test test_str_amount_idx null CREATE INDEX test_str_amount_idx ON public.test USING btree (str, amount)
SELECT 3
schema_name table_name index_name is_pk is_unique
public test test_pkey t t
public test test_str_key f t
public test test_str_amount_idx f f
SELECT 3