bug in prepared statements, alter table <8.3

From: "Merlin Moncure" <mmoncure(at)gmail(dot)com>
To: "Pg Hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: bug in prepared statements, alter table <8.3
Date: 2008-08-07 22:30:10
Message-ID: b42b73150808071530t6cb2f010x1e6c9a628ffa5221@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2008-08-07 22:38:04 Re: patch: Add columns via CREATE OR REPLACE VIEW
Previous Message Tom Lane 2008-08-07 21:26:43 Re: patch: Add columns via CREATE OR REPLACE VIEW