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 TYPE
enumlabel
test1
test2
test3
SELECT 3
ALTER TYPE
ALTER TYPE
ALTER TYPE
enumlabel
test1
test2
test3
test4
test11
test12
SELECT 6
typname enumlabel enumsortorder
gnum test1 1
gnum test11 1.5
gnum test12 1.75
gnum test2 2
gnum test3 3
gnum test4 4
SELECT 6
ALTER TYPE
enumlabel
test2
test3
test4
test11
test12
test1-modified
SELECT 6
enum_range
{test1-modified,test11,test12,test2,test3,test4}
SELECT 1
unnest
test1-modified
test11
test12
test2
test3
test4
SELECT 6
DROP TYPE
enumlabel
SELECT 0