Refactor code building relation options
Michael Paquier <michael@paquier.xyz>
Refactor code building relation options Historically, the code to build relation options has been shaped the same way in multiple code paths by using a set of datums in input with the options parsed with a static table which is then filled with the option values. This introduces a new common routine in reloptions.c to do most of the legwork for the in-core code paths. Author: Amit Langote Reviewed-by: Michael Paquier Discussion: https://postgr.es/m/CA+HiwqGsoSn_uTPPYT19WrtR7oYpYtv4CdS0xuedTKiHHWuk_g@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| contrib/bloom/blutils.c | modified | +7 −7 |
| src/backend/access/brin/brin.c | modified | +4 −18 |
| src/backend/access/common/reloptions.c | modified | +54 −61 |
| src/backend/access/gin/ginutil.c | modified | +4 −18 |
| src/backend/access/gist/gistutil.c | modified | +4 −18 |
| src/include/access/reloptions.h | modified | +5 −0 |
| src/test/modules/dummy_index_am/dummy_index_am.c | modified | +4 −11 |
Discussion
- Re: [PATCH] Do not use StdRdOptions in Access Methods 41 messages · 2019-10-06 → 2019-11-25