OSDN Git Service

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)
commit5b5ee14a4be3a981681df78a8874dd55405009a3
treedb81235b29af860da58e25bf055396ce061dc877
parent2f0d528291fae0b7a859d5d7cdb89c62803d1c71
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