Re: Adding column breaks function with composite type argument

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jeff Eckermann <jeckermann(at)verio(dot)net>
Cc: "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Adding column breaks function with composite type argument
Date: 2001-05-08 20:30:44
Message-ID: 8040.989353844@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jeff Eckermann <jeckermann(at)verio(dot)net> writes:
> I created a pl/pgsql function which takes a table row as an argument,
> returning a value based on a comparison of two fields in each row.
> This worked fine until I did an "ALTER TABLE ... ADD COLUMN ... ;",
> whereupon the function failed to work, producing an error message : "ERROR:
> query didn't return correct # of attributes for $1"

Fixed in 7.1.1.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2001-05-08 21:21:51 Re: ALTER COLUMN
Previous Message Tom Lane 2001-05-08 20:28:15 Re: select off of a view going slowly