I wrote: > Michael Fuhr <[EMAIL PROTECTED]> writes: >> I get an assertion failure if rec is declared as a record but not >> if it's declared as a test_type. And only in 8.0.5, not in 8.1.1 >> or 8.2devel.
> I find that the lack of an assertion failure in 8.1 is a happenstance of > unrelated changes. The problem is that plpgsql is making no effort at > all to ensure that the record type it returns is the same as it's > declared to return. Patches committed to check this in 8.0 and up. 7.4 and 7.3 seem not to have an issue. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 2: Don't 'kill -9' the postmaster