Re: [HACKERS] FW: indirect dereferencing a field in a record using plpgsql

2003-09-08 Thread Tom Lane
"Conrad Vermeulen" <[EMAIL PROTECTED]> writes: > Possibly my quick hack may not work if the parser > predetermines the type as the functionality required would only really be > able to determine the type at time of execution. The problem is that the first time through, the execution plan for the

[HACKERS] FW: indirect dereferencing a field in a record using plpgsql

2003-09-08 Thread Conrad Vermeulen
Hi, I had a problem where I needed to indirectly dereference a field from a record. To illustrate: CREATE FUNCTION test2() returns bool as ' DECLARE myrec record; fld text; BEGIN select ''hello'' as a, ''world'' as b into myrec; fld = ''a''; -- the fieldname fro