Index tuple data arrays using Anum_xxx symbolic constants instead of "i++".
Tom Lane <tgl@sss.pgh.pa.us>
Index tuple data arrays using Anum_xxx symbolic constants instead of "i++". We had already converted most places to this style, but this patch gets the last few that were still doing it the old way. The main advantage is that this exposes a greppable name for each target column, rather than having to rely on comments (which a couple of places failed to provide anyhow). Richard Hopkins, additional work by me to clean up update_attstats() too
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/catalog/pg_operator.c | modified | +28 −30 |
| src/backend/catalog/pg_type.c | modified | +61 −65 |
| src/backend/commands/analyze.c | modified | +10 −7 |
| src/backend/commands/comment.c | modified | +7 −9 |
| src/backend/rewrite/rewriteDefine.c | modified | +8 −10 |