postgresql/src/backend
Michael Paquier 9b286858e3 Add more sanity checks with callers of changeDependencyFor()
changeDependencyFor() returns the number of pg_depend entries changed,
or 0 if there is a problem.  The callers of this routine expect only one
dependency to change, but they did not check for the result returned.
The following code paths gain checks:
- Namespace for extensions.
- Namespace for various object types (see AlterObjectNamespace).
- Planner support function for a function.

Some existing error messages related to all that are reworded to be more
consistent with the project style, and the new error messages added
follow the same style.  This change has exposed one bug fixed a bit
earlier with bd5ddbe.

Reviewed-by: Heikki Linnakangas, Akshat Jaimini
Discussion: https://postgr.es/m/ZJzD/rn+UbloKjB7@paquier.xyz
2023-07-10 13:08:10 +09:00
..
access Document relaxed HOT for summarizing indexes 2023-07-07 19:04:53 +02:00
archive Redesign archive modules 2023-02-17 14:26:42 +09:00
backup Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
bootstrap Fix CREATE INDEX progress reporting for multi-level partitioning. 2023-03-25 15:34:03 -04:00
catalog Revert MAINTAIN privilege and pg_maintain predefined role. 2023-07-07 11:25:13 -07:00
commands Add more sanity checks with callers of changeDependencyFor() 2023-07-10 13:08:10 +09:00
executor Fix memory leak in Incremental Sort rescans 2023-07-02 20:03:30 +02:00
foreign Expand some more uses of "deleg" to "delegation" or "delegated". 2023-05-21 10:55:18 -04:00
jit Fix leak of LLVM "fatal-on-oom" section counter. 2023-07-05 13:13:13 +03:00
lib Fix ILIST_DEBUG build 2023-01-18 10:26:15 -08:00
libpq Remove unnecessary unbind in LDAP search+bind mode 2023-07-09 08:51:46 +02:00
main Remove obsolete defense against strxfrm() bugs. 2023-04-20 13:20:14 +12:00
nodes Remove trailing zero words from Bitmapsets 2023-07-04 12:34:48 +12:00
optimizer Fix code indentation vioaltion introduced in commit cc32ec24fd. 2023-07-06 11:49:18 +05:30
parser Make some indentation in gram.y consistent 2023-07-08 15:56:01 +02:00
partitioning Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
po Translation updates 2023-06-26 12:02:02 +02:00
port Add GUC parameter "huge_pages_status" 2023-07-06 14:42:36 +09:00
postmaster Increase size of bgw_library_name. 2023-07-03 15:02:16 -07:00
regex All supported systems have locale_t. 2023-07-09 11:55:18 +12:00
replication Handle \v as a whitespace character in parsers 2023-07-06 08:16:24 +09:00
rewrite A minor simplification for List manipulation 2023-07-03 11:39:03 +02:00
snowball Fix the install rule for snowball_create.sql. 2023-05-23 11:15:57 -04:00
statistics Take pg_attribute out of VacAttrStats 2023-07-03 07:18:57 +02:00
storage Add GUC parameter "huge_pages_status" 2023-07-06 14:42:36 +09:00
tcop Handle logical slot conflicts on standby 2023-04-08 00:05:44 -07:00
tsearch Take pg_attribute out of VacAttrStats 2023-07-03 07:18:57 +02:00
utils All supported systems have locale_t. 2023-07-09 11:55:18 +12:00
.gitignore
common.mk Blind attempt to fix LLVM dependency in the backend 2022-09-15 10:53:48 +07:00
Makefile Generate automatically code and documentation related to wait events 2023-07-05 10:53:11 +09:00
meson.build Add win32ver data to meson-built postgres.exe. 2023-06-12 07:40:38 -07:00
nls.mk Add missing gettext triggers 2023-05-10 13:51:51 +02:00