git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 95ce4ee) | patch
Refactor the handling of the various DropStmt variants so that when multiple
2008年6月14日 18:04:34 +0000 (18:04 +0000)
2008年6月14日 18:04:34 +0000 (18:04 +0000)
commit 0cefb50f3ce964d6097aad64dabd9b544c3d2e68
Refactor the handling of the various DropStmt variants so that when multiple
objects are specified, we drop them all in a single performMultipleDeletions
call. This makes the RESTRICT/CASCADE checks more relaxed: it's not counted
as a cascade if one of the later objects has a dependency on an earlier one.
NOTICE messages about such cases go away, too.

In passing, fix the permissions check for DROP CONVERSION, which for some
reason was never made role-aware, and omitted the namespace-owner exemption
too.

Alex Hunsaker, with further fiddling by me.
20 files changed:
src/backend/catalog/dependency.c diff | blob | blame | history
src/backend/catalog/pg_conversion.c diff | blob | blame | history
src/backend/commands/conversioncmds.c diff | blob | blame | history
src/backend/commands/indexcmds.c diff | blob | blame | history
src/backend/commands/schemacmds.c diff | blob | blame | history
src/backend/commands/tablecmds.c diff | blob | blame | history
src/backend/commands/tsearchcmds.c diff | blob | blame | history
src/backend/commands/typecmds.c diff | blob | blame | history
src/backend/commands/view.c diff | blob | blame | history
src/backend/tcop/utility.c diff | blob | blame | history
src/include/catalog/pg_conversion_fn.h diff | blob | blame | history
src/include/commands/conversioncmds.h diff | blob | blame | history
src/include/commands/defrem.h diff | blob | blame | history
src/include/commands/schemacmds.h diff | blob | blame | history
src/include/commands/tablecmds.h diff | blob | blame | history
src/include/commands/typecmds.h diff | blob | blame | history
src/include/commands/view.h diff | blob | blame | history
src/test/regress/expected/foreign_key.out diff | blob | blame | history
src/test/regress/expected/truncate.out diff | blob | blame | history
src/test/regress/sql/foreign_key.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /