├── .clang-format ├── .github └── workflows │ ├── main.yml │ └── release.yml ├── .gitignore ├── LICENSE ├── META.json ├── Makefile ├── README.md ├── nix ├── pgmq.nix ├── plpgsql-check.nix └── xpg.nix ├── shell.nix ├── src ├── constrained_extensions.c ├── constrained_extensions.h ├── drop_trigger_grants.c ├── drop_trigger_grants.h ├── event_triggers.c ├── event_triggers.h ├── extension_custom_scripts.c ├── extension_custom_scripts.h ├── extensions_parameter_overrides.c ├── extensions_parameter_overrides.h ├── pg_prelude.h ├── policy_grants.c ├── policy_grants.h ├── privileged_extensions.c ├── privileged_extensions.h ├── supautils.c ├── utils.c └── utils.h └── test ├── expected ├── eq15_pgmq.out ├── event_triggers.out.in ├── event_triggers_super.out ├── extension_custom_scripts.out ├── ge16_privileged_role.out ├── linux_constrained_extensions.out ├── lt16_privileged_role.out ├── privileged_extensions.out ├── privileged_role.out ├── reserved_memberships.out ├── reserved_roles.out └── restricted_placeholders.out ├── init.conf.in ├── init.sh ├── init.sql └── sql ├── eq15_pgmq.sql ├── event_triggers.sql ├── event_triggers_super.sql ├── extension_custom_scripts.sql ├── ge16_privileged_role.sql ├── linux_constrained_extensions.sql ├── lt16_privileged_role.sql ├── privileged_extensions.sql ├── privileged_role.sql ├── reserved_memberships.sql ├── reserved_roles.sql └── restricted_placeholders.sql /.clang-format: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/.clang-format -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/.github/workflows/main.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/LICENSE -------------------------------------------------------------------------------- /META.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/META.json -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/README.md -------------------------------------------------------------------------------- /nix/pgmq.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/nix/pgmq.nix -------------------------------------------------------------------------------- /nix/plpgsql-check.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/nix/plpgsql-check.nix -------------------------------------------------------------------------------- /nix/xpg.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/nix/xpg.nix -------------------------------------------------------------------------------- /shell.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/shell.nix -------------------------------------------------------------------------------- /src/constrained_extensions.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/src/constrained_extensions.c -------------------------------------------------------------------------------- /src/constrained_extensions.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/src/constrained_extensions.h -------------------------------------------------------------------------------- /src/drop_trigger_grants.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/src/drop_trigger_grants.c -------------------------------------------------------------------------------- /src/drop_trigger_grants.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/src/drop_trigger_grants.h -------------------------------------------------------------------------------- /src/event_triggers.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/src/event_triggers.c -------------------------------------------------------------------------------- /src/event_triggers.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/src/event_triggers.h -------------------------------------------------------------------------------- /src/extension_custom_scripts.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/src/extension_custom_scripts.c -------------------------------------------------------------------------------- /src/extension_custom_scripts.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/src/extension_custom_scripts.h -------------------------------------------------------------------------------- /src/extensions_parameter_overrides.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/src/extensions_parameter_overrides.c -------------------------------------------------------------------------------- /src/extensions_parameter_overrides.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/src/extensions_parameter_overrides.h -------------------------------------------------------------------------------- /src/pg_prelude.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/src/pg_prelude.h -------------------------------------------------------------------------------- /src/policy_grants.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/src/policy_grants.c -------------------------------------------------------------------------------- /src/policy_grants.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/src/policy_grants.h -------------------------------------------------------------------------------- /src/privileged_extensions.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/src/privileged_extensions.c -------------------------------------------------------------------------------- /src/privileged_extensions.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/src/privileged_extensions.h -------------------------------------------------------------------------------- /src/supautils.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/src/supautils.c -------------------------------------------------------------------------------- /src/utils.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/src/utils.c -------------------------------------------------------------------------------- /src/utils.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/src/utils.h -------------------------------------------------------------------------------- /test/expected/eq15_pgmq.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/test/expected/eq15_pgmq.out -------------------------------------------------------------------------------- /test/expected/event_triggers.out.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/test/expected/event_triggers.out.in -------------------------------------------------------------------------------- /test/expected/event_triggers_super.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/test/expected/event_triggers_super.out -------------------------------------------------------------------------------- /test/expected/extension_custom_scripts.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/test/expected/extension_custom_scripts.out -------------------------------------------------------------------------------- /test/expected/ge16_privileged_role.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/test/expected/ge16_privileged_role.out -------------------------------------------------------------------------------- /test/expected/linux_constrained_extensions.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/test/expected/linux_constrained_extensions.out -------------------------------------------------------------------------------- /test/expected/lt16_privileged_role.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/test/expected/lt16_privileged_role.out -------------------------------------------------------------------------------- /test/expected/privileged_extensions.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/test/expected/privileged_extensions.out -------------------------------------------------------------------------------- /test/expected/privileged_role.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/test/expected/privileged_role.out -------------------------------------------------------------------------------- /test/expected/reserved_memberships.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/test/expected/reserved_memberships.out -------------------------------------------------------------------------------- /test/expected/reserved_roles.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/test/expected/reserved_roles.out -------------------------------------------------------------------------------- /test/expected/restricted_placeholders.out: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/test/expected/restricted_placeholders.out -------------------------------------------------------------------------------- /test/init.conf.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/test/init.conf.in -------------------------------------------------------------------------------- /test/init.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/test/init.sh -------------------------------------------------------------------------------- /test/init.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/test/init.sql -------------------------------------------------------------------------------- /test/sql/eq15_pgmq.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/test/sql/eq15_pgmq.sql -------------------------------------------------------------------------------- /test/sql/event_triggers.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/test/sql/event_triggers.sql -------------------------------------------------------------------------------- /test/sql/event_triggers_super.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/test/sql/event_triggers_super.sql -------------------------------------------------------------------------------- /test/sql/extension_custom_scripts.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/test/sql/extension_custom_scripts.sql -------------------------------------------------------------------------------- /test/sql/ge16_privileged_role.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/test/sql/ge16_privileged_role.sql -------------------------------------------------------------------------------- /test/sql/linux_constrained_extensions.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/test/sql/linux_constrained_extensions.sql -------------------------------------------------------------------------------- /test/sql/lt16_privileged_role.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/test/sql/lt16_privileged_role.sql -------------------------------------------------------------------------------- /test/sql/privileged_extensions.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/test/sql/privileged_extensions.sql -------------------------------------------------------------------------------- /test/sql/privileged_role.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/test/sql/privileged_role.sql -------------------------------------------------------------------------------- /test/sql/reserved_memberships.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/test/sql/reserved_memberships.sql -------------------------------------------------------------------------------- /test/sql/reserved_roles.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/test/sql/reserved_roles.sql -------------------------------------------------------------------------------- /test/sql/restricted_placeholders.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/supabase/supautils/HEAD/test/sql/restricted_placeholders.sql --------------------------------------------------------------------------------