diff --git a/Makefile b/Makefile index b293fc1..4c200bc 100644 --- a/Makefile +++ b/Makefile @@ -103,5 +103,5 @@ clean_old_version: # source instead; a version file still under active development can be # linted directly, e.g. # `.vendor/linter/sql/bin/sql-lint sql/cat_tools--0.3.0.sql.in`. -LINT_TARGETS = sql/cat_tools.sql.in sql/omit_column.sql test/ +LINT_TARGETS = sql/cat_tools.sql.in test/ include lint.mk diff --git a/sql/omit_column.sql b/sql/omit_column.sql deleted file mode 100644 index 1d95832..0000000 --- a/sql/omit_column.sql +++ /dev/null @@ -1,16 +0,0 @@ -CREATE FUNCTION :s.omit_column( - rel text - , omit name[] DEFAULT array['oid'] -) RETURNS text LANGUAGE sql IMMUTABLE AS $body$ -SELECT array_to_string(array( - SELECT attname - FROM pg_attribute a - WHERE attrelid = rel::regclass - AND NOT attisdropped - AND attnum >= 0 - AND attname != ANY( omit ) - ORDER BY attnum - ) - , ', ' -) -$body$;