-- collation DROP COLLATION IFEXISTS test_collation_exists;
-- conversion DROP CONVERSION test_conversion_exists; DROP CONVERSION IFEXISTS test_conversion_exists; CREATE CONVERSION test_conversion_exists FOR'LATIN1'TO'UTF8'FROM iso8859_1_to_utf8; DROP CONVERSION test_conversion_exists;
-- text search parser DROP TEXT SEARCH PARSER test_tsparser_exists; DROP TEXT SEARCH PARSER IFEXISTS test_tsparser_exists;
-- text search dictionary DROP TEXT SEARCH DICTIONARY test_tsdict_exists; DROP TEXT SEARCH DICTIONARY IFEXISTS test_tsdict_exists; CREATE TEXT SEARCH DICTIONARY test_tsdict_exists (
Template=ispell,
DictFile=ispell_sample,
AffFile=ispell_sample
); DROP TEXT SEARCH DICTIONARY test_tsdict_exists;
-- test search template DROP TEXT SEARCH TEMPLATE test_tstemplate_exists; DROP TEXT SEARCH TEMPLATE IFEXISTS test_tstemplate_exists;
-- text search configuration DROP TEXT SEARCH CONFIGURATION test_tsconfig_exists; DROP TEXT SEARCH CONFIGURATION IFEXISTS test_tsconfig_exists; CREATE TEXT SEARCH CONFIGURATION test_tsconfig_exists (COPY=english); DROP TEXT SEARCH CONFIGURATION test_tsconfig_exists;
-- extension DROP EXTENSION test_extension_exists; DROP EXTENSION IFEXISTS test_extension_exists;
-- functions DROP FUNCTION test_function_exists(); DROP FUNCTION IFEXISTS test_function_exists();
DROP FUNCTION test_function_exists(int, text, int[]); DROP FUNCTION IFEXISTS test_function_exists(int, text, int[]);
-- aggregate DROP AGGREGATE test_aggregate_exists(*); DROP AGGREGATE IFEXISTS test_aggregate_exists(*);
DROP AGGREGATE test_aggregate_exists(int); DROP AGGREGATE IFEXISTS test_aggregate_exists(int);
-- operator DROP OPERATOR @#@ (int, int); DROP OPERATOR IFEXISTS @#@ (int, int); CREATE OPERATOR @#@
(leftarg = int8, rightarg = int8, procedure = int8xor); DROP OPERATOR @#@ (int8, int8);
-- language DROP LANGUAGE test_language_exists; DROP LANGUAGE IFEXISTS test_language_exists;
-- cast DROP CAST (text AS text); DROP CAST IFEXISTS (text AS text);
-- trigger DROPTRIGGER test_trigger_exists ON test_exists; DROPTRIGGERIFEXISTS test_trigger_exists ON test_exists;
DROPTRIGGER test_trigger_exists ON no_such_table; DROPTRIGGERIFEXISTS test_trigger_exists ON no_such_table;
DROPTRIGGER test_trigger_exists ON no_such_schema.no_such_table; DROPTRIGGERIFEXISTS test_trigger_exists ON no_such_schema.no_such_table;
-- rule DROP RULE test_rule_exists ON test_exists; DROP RULE IFEXISTS test_rule_exists ON test_exists;
DROP RULE test_rule_exists ON no_such_table; DROP RULE IFEXISTS test_rule_exists ON no_such_table;
DROP RULE test_rule_exists ON no_such_schema.no_such_table; DROP RULE IFEXISTS test_rule_exists ON no_such_schema.no_such_table;
CREATE RULE test_rule_exists ASONINSERTTO test_exists
DO INSTEAD INSERTINTO test_exists VALUES (NEW.a, NEW.b || NEW.a::text); DROP RULE test_rule_exists ON test_exists;
-- foreign data wrapper DROPFOREIGN DATA WRAPPER test_fdw_exists; DROPFOREIGN DATA WRAPPER IFEXISTS test_fdw_exists;
-- foreign server DROP SERVER test_server_exists; DROP SERVER IFEXISTS test_server_exists;
-- operator class DROP OPERATOR CLASS test_operator_class USING btree; DROP OPERATOR CLASS IFEXISTS test_operator_class USING btree;
DROP OPERATOR CLASS test_operator_class USING no_such_am; DROP OPERATOR CLASS IFEXISTS test_operator_class USING no_such_am;
-- operator family DROP OPERATOR FAMILY test_operator_family USING btree; DROP OPERATOR FAMILY IFEXISTS test_operator_family USING btree;
DROP OPERATOR FAMILY test_operator_family USING no_such_am; DROP OPERATOR FAMILY IFEXISTS test_operator_family USING no_such_am;
-- access method DROP ACCESS METHOD no_such_am; DROP ACCESS METHOD IFEXISTS no_such_am;
-- drop the table
DROPTABLEIFEXISTS test_exists;
DROPTABLE test_exists;
-- be tolerant with missing schemas, types, etc
DROP AGGREGATE IFEXISTS no_such_schema.foo(int); DROP AGGREGATE IFEXISTS foo(no_such_type); DROP AGGREGATE IFEXISTS foo(no_such_schema.no_such_type); DROP CAST IFEXISTS (INTEGERAS no_such_type2); DROP CAST IFEXISTS (no_such_type1 ASINTEGER); DROP CAST IFEXISTS (INTEGERAS no_such_schema.bar); DROP CAST IFEXISTS (no_such_schema.foo ASINTEGER); DROP COLLATION IFEXISTS no_such_schema.foo; DROP CONVERSION IFEXISTS no_such_schema.foo; DROP DOMAIN IFEXISTS no_such_schema.foo; DROPFOREIGNTABLEIFEXISTS no_such_schema.foo; DROP FUNCTION IFEXISTS no_such_schema.foo(); DROP FUNCTION IFEXISTS foo(no_such_type); DROP FUNCTION IFEXISTS foo(no_such_schema.no_such_type); DROPINDEXIFEXISTS no_such_schema.foo; DROP MATERIALIZED VIEW IFEXISTS no_such_schema.foo; DROP OPERATOR IFEXISTS no_such_schema.+ (int, int); DROP OPERATOR IFEXISTS + (no_such_type, no_such_type); DROP OPERATOR IFEXISTS + (no_such_schema.no_such_type, no_such_schema.no_such_type); DROP OPERATOR IFEXISTS # (NONE, no_such_schema.no_such_type); DROP OPERATOR CLASS IFEXISTS no_such_schema.widget_ops USING btree; DROP OPERATOR FAMILY IFEXISTS no_such_schema.float_ops USING btree; DROP RULE IFEXISTS foo ON no_such_schema.bar; DROP SEQUENCE IFEXISTS no_such_schema.foo; DROPTABLEIFEXISTS no_such_schema.foo; DROP TEXT SEARCH CONFIGURATION IFEXISTS no_such_schema.foo; DROP TEXT SEARCH DICTIONARY IFEXISTS no_such_schema.foo; DROP TEXT SEARCH PARSER IFEXISTS no_such_schema.foo; DROP TEXT SEARCH TEMPLATE IFEXISTS no_such_schema.foo; DROPTRIGGERIFEXISTS foo ON no_such_schema.bar; DROP TYPE IFEXISTS no_such_schema.foo; DROP VIEW IFEXISTS no_such_schema.foo;
-- Check we receive an ambiguous function error when there are -- multiple matching functions. CREATE FUNCTION test_ambiguous_funcname(int) returns intas $$ select $1; $$ language sql; CREATE FUNCTION test_ambiguous_funcname(text) returns text as $$ select $1; $$ language sql; DROP FUNCTION test_ambiguous_funcname; DROP FUNCTION IFEXISTS test_ambiguous_funcname;
-- cleanup DROP FUNCTION test_ambiguous_funcname(int); DROP FUNCTION test_ambiguous_funcname(text);
-- Likewise for procedures. CREATEPROCEDURE test_ambiguous_procname(int) as $$ begin end; $$ language plpgsql; CREATEPROCEDURE test_ambiguous_procname(text) as $$ begin end; $$ language plpgsql; DROPPROCEDURE test_ambiguous_procname; DROPPROCEDUREIFEXISTS test_ambiguous_procname;
-- Check we get a similar error if we use ROUTINE instead of PROCEDURE. DROP ROUTINE IFEXISTS test_ambiguous_procname;
-- This test checks both the functionality of 'if exists' and the syntax -- of the drop database command. dropdatabase test_database_exists (force); dropdatabase test_database_exists with (force); dropdatabaseifexists test_database_exists (force); dropdatabaseifexists test_database_exists with (force);
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet am 2026-08-08)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.