aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/jsonfuncs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2014-06-20 18:20:56 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2014-06-20 18:21:05 -0400
commit8b38a538c0aa5a432dacd90f10805dc667a3d1a0 (patch)
tree4a988b636718a81cba7a20efda85b73700b85b6c /src/backend/utils/adt/jsonfuncs.c
parent1dde5782e34a1c5ef2ce9d97cf18007fed5fde92 (diff)
downloadpostgresql-8b38a538c0aa5a432dacd90f10805dc667a3d1a0.tar.gz
postgresql-8b38a538c0aa5a432dacd90f10805dc667a3d1a0.zip
Add Asserts to verify that catalog cache keys are unique and not null.
The catcache code is effectively assuming this already, so let's insist that the catalog and index are actually declared that way. Having done that, the comments in indexing.h about non-unique indexes not being used for catcaches are completely redundant not just mostly so; and we didn't have such a comment for every such index anyway. So let's get rid of them. Per discussion of whether we should identify primary keys for catalogs. We might or might not take that further step, but this change in itself will allow quicker detection of misdeclared catcaches, so it seems worth doing in any case.
Diffstat (limited to 'src/backend/utils/adt/jsonfuncs.c')
0 files changed, 0 insertions, 0 deletions