postgresql/src
Tom Lane 42b041243c Throw a more on-point error for functions depending on columns.
ALTER COLUMN TYPE wasn't expecting to find any pg_proc objects
depending on the column whose type is to be altered.  That indeed
wasn't possible when this code was written, but it is possible
since we introduced new-style SQL function bodies.

It's about as difficult to fix this case as it is to fix dependent
views, and we've been punting on those for years, so I don't feel
too awful about punting for functions too.  (I sure wouldn't risk
back-patching such code.)  So just throw a more user-facing error.
Also, adjust some of the existing comments to reflect that these
are all pretty much the same issue.

(This patch also fixes it so we will tolerate finding such a
dependency during ALTER COLUMN SET EXPRESSION; in that, we need
not do anything to the function, so no error is wanted.  That
problem is new in HEAD.)

Per bug #18449 from Alexander Lakhin.  Back-patch to v14 where
we added new-style SQL functions.

Discussion: https://postgr.es/m/18449-f8248467aaa294d5@postgresql.org
2024-04-28 14:34:21 -04:00
..
backend Throw a more on-point error for functions depending on columns. 2024-04-28 14:34:21 -04:00
bin Minor fixes to pg_combinebackup and its documentation. 2024-04-26 08:42:42 -04:00
common Remove redundant JSON parser typedefs 2024-04-27 07:02:57 -04:00
fe_utils Allow dbname to be written as part of connstring via pg_basebackup's -R option. 2024-03-21 10:50:33 +05:30
include Small cosmetic fixes in radix tree template 2024-04-27 14:42:01 +07:00
interfaces Remove obsolete symbol from ecpg_config.h.in 2024-04-24 08:27:25 +02:00
makefiles Optimize pg_popcount() with AVX-512 instructions. 2024-04-06 21:56:23 -05:00
pl Fix plpgsql's handling of -- comments following expressions. 2024-04-10 15:45:58 -04:00
port Fix code for probing availability of AVX-512. 2024-04-23 10:54:04 -05:00
template
test Detect more overflows in timestamp[tz]_pl_interval. 2024-04-28 13:42:13 -04:00
timezone
tools Remove redundant JSON parser typedefs 2024-04-27 07:02:57 -04:00
tutorial
.gitignore
DEVELOPERS
Makefile
Makefile.global.in Update Unicode data to CLDR 45 2024-04-22 09:16:33 +02:00
Makefile.shlib
meson.build
nls-global.mk