Re: [BUGS] BUG #14470: Dropping a column produces "table row type and query-specified row type do not match" error

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [BUGS] BUG #14470: Dropping a column produces "table row type and query-specified row type do not match" error
Дата
Msg-id 23905.1482280257@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [BUGS] BUG #14470: Dropping a column produces "table row type andquery-specified row type do not match" error  (joan@sanchezsabe.com)
Список pgsql-bugs
joan@sanchezsabe.com writes:
> At this point, if we drop one column (not used at all by the previous
> function)...
> ALTER TABLE users 
>     DROP COLUMN column_that_we_will_drop ;
> ... this makes the next statement to generate an error
> SELECT * FROM fun('a@b.com');
> ERROR: table row type and query-specified row type do not match
> SQL state: 42804
> Detail: Query provides a value for a dropped column at ordinal position 3.
> Context: SQL function "fun" statement 1
>     SELECT * FROM fun('a@b.com');

I can't reproduce this in HEAD or 9.6 branch tip.  I believe it was
already fixed by this patch, which went in a bit after 9.6.1:

https://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=f4d865f22

But thanks for the report!

            regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

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

Предыдущее
От: joan@sanchezsabe.com
Дата:
Сообщение: [BUGS] BUG #14470: Dropping a column produces "table row type andquery-specified row type do not match" error
Следующее
От: josef.machytka@gmail.com
Дата:
Сообщение: [BUGS] BUG #14471: PostgreSQL 9.6 "NOT IN" in select causes crash with"ERROR: unknown error"