Re: [BUGS] "ERROR: Query-specified return tuple and actual function

2003-01-20 Thread Andrzej Kosmala
Tom Lane <[EMAIL PROTECTED]> writes: > Joe Conway <[EMAIL PROTECTED]> writes: > > Andrzej Kosmala wrote: > >> PostgreSQL 7.3 on Linux > >> After dropping column functions return error message: "ERROR: > >> Query-specified return tuple and actual function return tuple do not match" > > > Hmmm, look

Re: [BUGS] "ERROR: Query-specified return tuple and actual function

2003-01-14 Thread Adam Buraczewski
On Mon, Jan 13, 2003 at 02:52:25PM -0500, Tom Lane wrote: > Joe Conway <[EMAIL PROTECTED]> writes: > > Hmmm, looks like nodeFunctionscan.c:tupledesc_mismatch needs to be > > taught about attisdropped. I'll submit a patch this evening if no one > > else gets to it first. > > Actually, I believe I d

Re: [BUGS] "ERROR: Query-specified return tuple and actual function

2003-01-13 Thread Tom Lane
Joe Conway <[EMAIL PROTECTED]> writes: > Without this change, any table that has had a column dropped would not > be able to be used as a function's return type at all. Yup, that was the idea ;-) > start with table test, attributes (a,b,c) > drop attribute b from test > tupledesc_mismatch checks

Re: [BUGS] "ERROR: Query-specified return tuple and actual function

2003-01-13 Thread Joe Conway
Tom Lane wrote: > Joe Conway <[EMAIL PROTECTED]> writes: >> Hmmm, looks like nodeFunctionscan.c:tupledesc_mismatch needs to be >> taught about attisdropped. I'll submit a patch this evening if no >> one else gets to it first. > > Actually, I believe I deliberately left it like that because I was >

Re: [BUGS] "ERROR: Query-specified return tuple and actual function

2003-01-13 Thread Tom Lane
Joe Conway <[EMAIL PROTECTED]> writes: > Andrzej Kosmala wrote: >> PostgreSQL 7.3 on Linux >> After dropping column functions return error message: "ERROR: >> Query-specified return tuple and actual function return tuple do not match" > Hmmm, looks like nodeFunctionscan.c:tupledesc_mismatch needs

Re: [BUGS] "ERROR: Query-specified return tuple and actual function

2003-01-13 Thread Joe Conway
Andrzej Kosmala wrote: PostgreSQL 7.3 on Linux After dropping column functions return error message: "ERROR: Query-specified return tuple and actual function return tuple do not match" Hmmm, looks like nodeFunctionscan.c:tupledesc_mismatch needs to be taught about attisdropped. I'll submit a pa

[BUGS] "ERROR: Query-specified return tuple and actual function return tuple do not match" after dropping column

2003-01-13 Thread Andrzej Kosmala
PostgreSQL 7.3 on Linux After dropping column functions return error message: "ERROR: Query-specified return tuple and actual function return tuple do not match" template1=# create table test(id integer, cdate timestamp); CREATE TABLE template1=# INSERT INTO test VALUES (1,now()); INSERT 17515 1 t