Add a defense to prevent storing pseudo-type data into index columns.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 14 Oct 2008 21:47:39 +0000 (21:47 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 14 Oct 2008 21:47:39 +0000 (21:47 +0000)
commit54394ef043daa38406e8fbcb43c0c73a646a186e
tree36d83ca6599a7885241647b7e003fc56e53a68f5
parent0a7b8b3432548534909cb7885ffa004a9d8e3d1f
Add a defense to prevent storing pseudo-type data into index columns.
Formerly, the lack of any opclasses that could accept such data was enough
of a defense, but now with a "record" opclass we need to check more carefully.
(You can still use that opclass for an index, but you have to store a named
composite type not an anonymous one.)
src/backend/catalog/index.c