Project

General

Profile

« Previous | Next » 

Revision 12667

schemas/util.sql: drop_relations_like(): debug-print the regexps so that you can tell which tables it's trying to match

View differences:

trunk/schemas/util.sql
1277 1277
CREATE FUNCTION drop_relations_like(name_regexp text, schema_regexp text DEFAULT ''::text, force boolean DEFAULT false) RETURNS void
1278 1278
    LANGUAGE sql
1279 1279
    AS $_$
1280
SELECT util.debug_print_sql(util.quote_func_call('util.drop_relations_like',
1281
util.quote_typed($1), util.quote_typed($2), util.quote_typed($3)))
1282
;
1280 1283
SELECT util.drop_relation(relation, $3)
1281 1284
FROM util.show_relations_like($1, $2) relation
1282 1285
;

Also available in: Unified diff