Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions pkg/backup/testdata/backup-restore/plpgsql_procedures
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,10 @@ ALTER TABLE sc1.tbl1 RENAME TO tbl1_new
pq: cannot rename relation "db1_new.sc1.tbl1" because procedure "p1" depends on it
HINT: consider dropping "p1" first.

# TODO(mgartner): The error message should say "procedure".
exec-sql
ALTER TABLE sc1.tbl1 SET SCHEMA sc2;
----
pq: cannot set schema on relation "tbl1" because function "p1" depends on it
pq: cannot set schema on relation "db1_new.sc1.tbl1" because procedure "p1" depends on it
HINT: consider dropping "p1" first.

exec-sql
Expand Down Expand Up @@ -389,7 +388,7 @@ HINT: consider dropping "p1" first.
exec-sql
ALTER TABLE sc1.tbl1 SET SCHEMA sc2;
----
pq: cannot set schema on relation "tbl1" because function "p1" depends on it
pq: cannot set schema on relation "db1.sc1.tbl1" because procedure "p1" depends on it
HINT: consider dropping "p1" first.

exec-sql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ HINT: consider dropping "f1" first.
exec-sql
ALTER TABLE sc1.tbl1 SET SCHEMA sc2;
----
pq: cannot set schema on relation "tbl1" because function "f1" depends on it
pq: cannot set schema on relation "db1_new.sc1.tbl1" because function "f1" depends on it
HINT: consider dropping "f1" first.

exec-sql
Expand Down Expand Up @@ -469,7 +469,7 @@ HINT: consider dropping "f1" first.
exec-sql
ALTER TABLE sc1.tbl1 SET SCHEMA sc2;
----
pq: cannot set schema on relation "tbl1" because function "f1" depends on it
pq: cannot set schema on relation "db1.sc1.tbl1" because function "f1" depends on it
HINT: consider dropping "f1" first.

exec-sql
Expand Down
5 changes: 2 additions & 3 deletions pkg/backup/testdata/backup-restore/procedures
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,10 @@ ALTER TABLE sc1.tbl1 RENAME TO tbl1_new
pq: cannot rename relation "db1_new.sc1.tbl1" because procedure "p1" depends on it
HINT: consider dropping "p1" first.

# TODO(mgartner): The error message should say "procedure".
exec-sql
ALTER TABLE sc1.tbl1 SET SCHEMA sc2;
----
pq: cannot set schema on relation "tbl1" because function "p1" depends on it
pq: cannot set schema on relation "db1_new.sc1.tbl1" because procedure "p1" depends on it
HINT: consider dropping "p1" first.

exec-sql
Expand Down Expand Up @@ -361,7 +360,7 @@ HINT: consider dropping "p1" first.
exec-sql
ALTER TABLE sc1.tbl1 SET SCHEMA sc2;
----
pq: cannot set schema on relation "tbl1" because function "p1" depends on it
pq: cannot set schema on relation "db1.sc1.tbl1" because procedure "p1" depends on it
HINT: consider dropping "p1" first.

exec-sql
Expand Down
2 changes: 1 addition & 1 deletion pkg/backup/testdata/backup-restore/triggers
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ pq: cannot rename relation "db1_new.sc1.tbl1" because trigger "tr1" on table "tb
exec-sql
ALTER TABLE sc1.tbl1 SET SCHEMA sc2;
----
pq: cannot set schema on relation "tbl1" because trigger "tr1" on table "tbl1" depends on it
pq: cannot set schema on relation "db1_new.sc1.tbl1" because trigger "tr1" on table "tbl1" depends on it

exec-sql
DROP TYPE sc1.enum1
Expand Down
4 changes: 2 additions & 2 deletions pkg/backup/testdata/backup-restore/user-defined-functions
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ HINT: consider dropping "f1" first.
exec-sql
ALTER TABLE sc1.tbl1 SET SCHEMA sc2;
----
pq: cannot set schema on relation "tbl1" because function "f1" depends on it
pq: cannot set schema on relation "db1_new.sc1.tbl1" because function "f1" depends on it
HINT: consider dropping "f1" first.

exec-sql
Expand Down Expand Up @@ -358,7 +358,7 @@ HINT: consider dropping "f1" first.
exec-sql
ALTER TABLE sc1.tbl1 SET SCHEMA sc2;
----
pq: cannot set schema on relation "tbl1" because function "f1" depends on it
pq: cannot set schema on relation "db1.sc1.tbl1" because function "f1" depends on it
HINT: consider dropping "f1" first.

exec-sql
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading