Revision 13497
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/schemas/util.sql | ||
---|---|---|
3350 | 3350 |
LANGUAGE sql |
3351 | 3351 |
AS $_$ |
3352 | 3352 |
SELECT util.debug_print_var('views', $1); |
3353 |
SELECT util.create_if_not_exists((view_).def) |
|
3353 |
SELECT util.create_if_not_exists((view_).def, (view_).path) |
|
3354 |
/* need to specify view name for manual existence check, in case view def |
|
3355 |
becomes invalid, which would produce nonstandard (uncatchable) exception */ |
|
3354 | 3356 |
FROM unnest($1.views) view_; -- in forward dependency order |
3355 | 3357 |
/* create_if_not_exists() rather than eval(), because cmd might manually |
3356 | 3358 |
re-create a deleted dependent view, causing it to already exist */ |
Also available in: Unified diff
bugfix: schemas/util.sql: restore_views(): need to specify view name for a manual existence check, in case the view definition becomes invalid, which would produce a nonstandard (uncatchable) exception