BUG #18449: Altering column type fails when an SQL routine depends on the column
The Post Office <noreply@postgresql.org>
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: exclusion@gmail.com
Date: 2024-04-27T04:00:01Z
Lists: pgsql-bugs
The following bug has been logged on the website: Bug reference: 18449 Logged by: Alexander Lakhin Email address: exclusion@gmail.com PostgreSQL version: 16.2 Operating system: Ubuntu 22.04 Description: The following script: CREATE TABLE t(a int, b varchar); CREATE FUNCTION f(i int) RETURNS text LANGUAGE SQL RETURN (SELECT b FROM t WHERE a = $1); ALTER TABLE t ALTER COLUMN b TYPE text; fails with: ERROR: unexpected object depending on column: function f(integer) on REL_14_STABLE .. master since e717a9a18.
Commits
-
Throw a more on-point error for publications depending on columns.
- 91e7115b177b 17.0 landed
- 5f4a1a0a7758 15.7 landed
- 11d40a44ba32 16.3 landed
-
Throw a more on-point error for functions depending on columns.
- b19255ca66f7 16.3 landed
- 9b41d1d634aa 15.7 landed
- 617a23927249 14.12 landed
- 42b041243c00 17.0 landed