pgsql: Improve plpgsql's ability to handle arguments declared as RECORD

2022-09-16 Thread Tom Lane
Improve plpgsql's ability to handle arguments declared as RECORD. Treat arguments declared as RECORD as if that were a polymorphic type (which it is, sort of), in that we substitute the actual argument type while forming the function cache lookup key. This allows the specific composite type to be

pgsql: Improve plpgsql's ability to handle arguments declared as RECORD

2022-09-16 Thread Tom Lane
Improve plpgsql's ability to handle arguments declared as RECORD. Treat arguments declared as RECORD as if that were a polymorphic type (which it is, sort of), in that we substitute the actual argument type while forming the function cache lookup key. This allows the specific composite type to be

pgsql: Improve plpgsql's ability to handle arguments declared as RECORD

2022-09-16 Thread Tom Lane
Improve plpgsql's ability to handle arguments declared as RECORD. Treat arguments declared as RECORD as if that were a polymorphic type (which it is, sort of), in that we substitute the actual argument type while forming the function cache lookup key. This allows the specific composite type to be

pgsql: Improve plpgsql's ability to handle arguments declared as RECORD

2022-09-16 Thread Tom Lane
Improve plpgsql's ability to handle arguments declared as RECORD. Treat arguments declared as RECORD as if that were a polymorphic type (which it is, sort of), in that we substitute the actual argument type while forming the function cache lookup key. This allows the specific composite type to be

pgsql: Improve plpgsql's ability to handle arguments declared as RECORD

2022-09-16 Thread Tom Lane
Improve plpgsql's ability to handle arguments declared as RECORD. Treat arguments declared as RECORD as if that were a polymorphic type (which it is, sort of), in that we substitute the actual argument type while forming the function cache lookup key. This allows the specific composite type to be

pgsql: Improve plpgsql's ability to handle arguments declared as RECORD

2022-09-16 Thread Tom Lane
Improve plpgsql's ability to handle arguments declared as RECORD. Treat arguments declared as RECORD as if that were a polymorphic type (which it is, sort of), in that we substitute the actual argument type while forming the function cache lookup key. This allows the specific composite type to be