BUG #18449: Altering column type fails when an SQL routine depends on the column

Поиск
Список
Период
Сортировка
От PG Bug reporting form
Тема BUG #18449: Altering column type fails when an SQL routine depends on the column
Дата
Msg-id 18449-f8248467aaa294d5@postgresql.org
обсуждение исходный текст
Ответы Re: BUG #18449: Altering column type fails when an SQL routine depends on the column  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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.


В списке pgsql-bugs по дате отправления:

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: Re: BUG #17257: (auto)vacuum hangs within lazy_scan_prune()
Следующее
От: PG Bug reporting form
Дата:
Сообщение: BUG #18450: The memory usage of the postgresql12.6 walsender process is abnormally high.