-
- Downloads
Improve plpgsql's handling of record field references by forcing all potential
field references in SQL expressions to have RECFIELD datum-array entries at parse time. If it turns out that the reference is actually to a SQL column, the RECFIELD entry is useless, but it costs little. This allows us to get rid of the previous use of FieldSelect applied to a whole-row Param for the record variable; which was not only slower than a direct RECFIELD reference, but failed for references to system columns of a trigger's NEW or OLD record. Per report and fix suggestion from Dean Rasheed.
Showing
- src/pl/plpgsql/src/gram.y 19 additions, 19 deletionssrc/pl/plpgsql/src/gram.y
- src/pl/plpgsql/src/pl_comp.c 41 additions, 45 deletionssrc/pl/plpgsql/src/pl_comp.c
- src/pl/plpgsql/src/pl_scanner.c 7 additions, 8 deletionssrc/pl/plpgsql/src/pl_scanner.c
- src/pl/plpgsql/src/plpgsql.h 10 additions, 2 deletionssrc/pl/plpgsql/src/plpgsql.h
Loading
Please register or sign in to comment