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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 4d32f6d) | patch
Fold FindConversion() into FindConversionByName() and remove ACL check.
Tue, 2 Feb 2010 18:52:33 +0000 (18:52 +0000)
Tue, 2 Feb 2010 18:52:33 +0000 (18:52 +0000)
commit d8db6a6096d1b901f2ad9077148a87cd95fb3e86
Fold FindConversion() into FindConversionByName() and remove ACL check.

All callers of FindConversionByName() already do suitable permissions
checking already apart from this function, but this is not just dead
code removal: the unnecessary permissions check can actually lead to
spurious failures - there's no reason why inability to execute the
underlying function should prohibit renaming the conversion, for example.
(The error messages in these cases were also rather poor:
FindConversion would return InvalidOid, eventually leading to a complaint
that the conversion "did not exist", which was not correct.)

KaiGai Kohei
src/backend/catalog/namespace.c diff | blob | blame | history
src/backend/catalog/pg_conversion.c diff | blob | blame | history
src/include/catalog/pg_conversion_fn.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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