aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/tablesample/tablesample.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2015-07-21 13:20:53 +0200
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2015-07-21 13:20:53 +0200
commit149b1dd84069a9b57962fdb4621754aed5dfb63e (patch)
tree07b9673bd44fe277ed91c422b859ff870e70134a /src/backend/access/tablesample/tablesample.c
parenteb11de8ff5eac3592d539ad7ca3059c02e4d3e99 (diff)
downloadpostgresql-149b1dd84069a9b57962fdb4621754aed5dfb63e.tar.gz
postgresql-149b1dd84069a9b57962fdb4621754aed5dfb63e.zip
Fix omission of OCLASS_TRANSFORM in object_classes[]
This was forgotten in cac76582053e (and its fixup ad89a5d115). Since it seems way too easy to miss this, this commit also introduces a mechanism to enforce that the array is consistent with the enum. Problem reported independently by Robert Haas and Jaimin Pan. Patches proposed by Jaimin Pan, Jim Nasby, Michael Paquier and myself, though I didn't use any of these and instead went with a cleaner approach suggested by Tom Lane. Backpatch to 9.5. Discussion: https://www.postgresql.org/message-id/CA+Tgmoa6SgDaxW_n_7SEhwBAc=mniYga+obUj5fmw4rU9_mLvA@mail.gmail.com https://www.postgresql.org/message-id/29788.1437411581@sss.pgh.pa.us
Diffstat (limited to 'src/backend/access/tablesample/tablesample.c')
0 files changed, 0 insertions, 0 deletions