Revision 13487
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/schemas/util.sql | ||
---|---|---|
1805 | 1805 |
AS $_$ |
1806 | 1806 |
DECLARE |
1807 | 1807 |
PG_EXCEPTION_DETAIL text; |
1808 |
recreate_users_cmds text[] = util.save_drop_views(users);
|
|
1808 |
restore_views_info text[] = util.save_drop_views(users);
|
|
1809 | 1809 |
BEGIN |
1810 | 1810 |
PERFORM util.eval(cmd); |
1811 |
PERFORM util.restore_views(recreate_users_cmds);
|
|
1811 |
PERFORM util.restore_views(restore_views_info);
|
|
1812 | 1812 |
EXCEPTION |
1813 | 1813 |
WHEN dependent_objects_still_exist THEN |
1814 | 1814 |
IF users IS NOT NULL THEN RAISE; END IF; -- save_drop_views() didn't fix it |
Also available in: Unified diff
schemas/util.sql: force_recreate(): recreate_users_cmds: renamed to restore_views_info since this is now whatever is needed by util.restore_views()