Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ CREATE UNIQUE INDEX IF NOT EXISTS "Idx_$%{}[]()&*^!@""'`\/#"
ON public.test_table_for_indexes USING btree
(id DESC NULLS FIRST, name COLLATE pg_catalog."POSIX" text_pattern_ops DESC NULLS FIRST)
INCLUDE(name, id)
WITH (fillfactor=100)
WITH (fillfactor=90)
TABLESPACE pg_default;
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ CREATE UNIQUE INDEX IF NOT EXISTS "Idx1_$%{}[]()&*^!@""'`\/#"
ON public.test_table_for_indexes USING btree
(id DESC NULLS FIRST, name COLLATE pg_catalog."POSIX" text_pattern_ops DESC NULLS FIRST)
INCLUDE(name, id)
WITH (fillfactor=100, deduplicate_items=True)
WITH (fillfactor=90, deduplicate_items=True)
TABLESPACE pg_default;

COMMENT ON INDEX public."Idx1_$%{}[]()&*^!@""'`\/#"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ CREATE UNIQUE INDEX IF NOT EXISTS "Idx_$%{}[]()&*^!@""'`\/#"
ON public.test_table_for_indexes USING btree
(id DESC NULLS FIRST, name COLLATE pg_catalog."POSIX" text_pattern_ops DESC NULLS FIRST)
INCLUDE(name, id)
WITH (fillfactor=100, deduplicate_items=True)
WITH (fillfactor=90, deduplicate_items=True)
TABLESPACE pg_default;
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CREATE UNIQUE INDEX IF NOT EXISTS "Idx1_$%{}[]()&*^!@""'`\/#"
(id DESC NULLS FIRST, name COLLATE pg_catalog."POSIX" text_pattern_ops DESC NULLS FIRST)
INCLUDE(name, id)
NULLS NOT DISTINCT
WITH (fillfactor=100, deduplicate_items=True)
WITH (fillfactor=90, deduplicate_items=True)
TABLESPACE pg_default;

COMMENT ON INDEX public."Idx1_$%{}[]()&*^!@""'`\/#"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ CREATE UNIQUE INDEX IF NOT EXISTS "Idx_$%{}[]()&*^!@""'`\/#"
(id DESC NULLS FIRST, name COLLATE pg_catalog."POSIX" text_pattern_ops DESC NULLS FIRST)
INCLUDE(name, id)
NULLS NOT DISTINCT
WITH (fillfactor=100, deduplicate_items=True)
WITH (fillfactor=90, deduplicate_items=True)
TABLESPACE pg_default;
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
CREATE INDEX IF NOT EXISTS "Idx_$%{}[]()&*^!@""'`\/#"
ON public.test_table_for_indexes USING hash
(id)
WITH (fillfactor=75)
TABLESPACE pg_default;
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ SELECT DISTINCT ON (cls.relname)
COALESCE(
substring(array_to_string(cls.reloptions, ',') FROM 'fillfactor=([0-9]*)')::int,
CASE am.amname
WHEN 'btree' THEN 100
WHEN 'gist' THEN 90
WHEN 'btree' THEN 90
WHEN 'gist' THEN 90
WHEN 'hash' THEN 75
WHEN 'spgist' THEN 90
ELSE NULL
END
) AS fillfactor,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ SELECT DISTINCT ON (cls.relname)
COALESCE(
substring(array_to_string(cls.reloptions, ',') FROM 'fillfactor=([0-9]*)')::int,
CASE am.amname
WHEN 'btree' THEN 100
WHEN 'btree' THEN 90
WHEN 'gist' THEN 90
WHEN 'hash' THEN 75
WHEN 'spgist' THEN 90
ELSE NULL
END
) AS fillfactor,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ SELECT DISTINCT ON (cls.relname)
COALESCE(
substring(array_to_string(cls.reloptions, ',') FROM 'fillfactor=([0-9]*)')::int,
CASE am.amname
WHEN 'btree' THEN 100
WHEN 'btree' THEN 90
WHEN 'gist' THEN 90
WHEN 'hash' THEN 75
WHEN 'spgist' THEN 90
ELSE NULL
END
) AS fillfactor,
Expand Down
Loading