Re: [HACKERS] Need for advice and direction (again)

2007-11-09 Thread Tom Lane
"Gevik Babakhani" <[EMAIL PROTECTED]> writes: > How should we refer to emp in the following example. > CREATE FUNCTION double_salary(PARAM1 emp) RETURNS numeric AS $$ > -- At this moment PARAM1.salary will fail because PARAM1 > -- is compared to the name of this function > SEL

[HACKERS] Need for advice and direction (again)

2007-11-09 Thread Gevik Babakhani
Hello Tom, I would like to know your opinion about the way we should refer to composite type params in functions. For example: CREATE TABLE emp ( nametext, salary numeric, age integer, cubicle point ); CREATE FUNCTION double_salary(emp) RETURNS numeric AS