bug in prepared statements, alter table <8.3

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема bug in prepared statements, alter table <8.3
Дата
Msg-id b42b73150808071530t6cb2f010x1e6c9a628ffa5221@mail.gmail.com
обсуждение исходный текст
Список pgsql-hackers
postgres=# create table abc (a int, b int);
CREATE TABLE
Time: 492.417 ms
postgres=# insert into abc values (1,2);
INSERT 0 1
Time: 16.602 ms
postgres=# prepare ins_abc as insert into abc values(1,2);
PREPARE
Time: 0.248 ms
postgres=# alter table abc alter a type numeric;
ALTER TABLE
Time: 254.847 ms
postgres=# EXECUTE ins_abc;
INSERT 0 1
Time: 0.452 ms
postgres=# select * from abc;
ERROR:  invalid memory alloc request size 18446744073709551610

:-)

h/t to rhodium toad.

merlin


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: patch: Add columns via CREATE OR REPLACE VIEW
Следующее
От: "Robert Haas"
Дата:
Сообщение: Re: patch: Add columns via CREATE OR REPLACE VIEW