2 /* Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
3 See www.xm.ple.com/CPAL for the full text of the software license. */
7 select string_agg('drop view if exists ' || t.oid::regclass || ' cascade;', ' ') into sqlstring
9 join pg_namespace n on n.oid = relnamespace
11 and nspname in ('xm','sys', 'xt');
12 if length(sqlstring) > 0 then