Update sequence-related functions to new fmgr style. Remove downcasing,
quote-stripping, and acl-checking tasks for these functions from the parser, and do them at function execution time instead. This fixes the failure of pg_dump to produce correct output for nextval(Foo) used in a rule, and also eliminates the restriction that the argument of these functions must be a parse-time constant.
Showing
- contrib/spi/autoinc.c 6 additions, 4 deletionscontrib/spi/autoinc.c
- src/backend/commands/sequence.c 83 additions, 23 deletionssrc/backend/commands/sequence.c
- src/backend/parser/parse_func.c 8 additions, 50 deletionssrc/backend/parser/parse_func.c
- src/include/catalog/pg_proc.h 5 additions, 5 deletionssrc/include/catalog/pg_proc.h
- src/include/commands/sequence.h 6 additions, 4 deletionssrc/include/commands/sequence.h
- src/test/regress/regress.c 5 additions, 5 deletionssrc/test/regress/regress.c
Loading
Please register or sign in to comment