OSDN Git Service

Index tuple data arrays using Anum_xxx symbolic constants instead of "i++".
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 16 Jun 2011 21:03:58 +0000 (17:03 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 16 Jun 2011 21:04:40 +0000 (17:04 -0400)
commitbfcb9328e51eaaa21c92a1f2d7262758afb843e8
tree20a30f7595e14acd9840dedce9be50d742afb069
parent7357558fc8866e3a449aa9473c419b593d67b5b6
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
src/backend/catalog/pg_operator.c
src/backend/catalog/pg_type.c
src/backend/commands/analyze.c
src/backend/commands/comment.c
src/backend/rewrite/rewriteDefine.c