Combine index_info and find_secondary_indexes into a single routine that

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 610dfa6d5560ebcd72ecca82c64c91503efc9bc5
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 1999-11-21T23:25:47Z
Releases: 7.1.1
Combine index_info and find_secondary_indexes into a single routine that
returns a list of RelOptInfos, eliminating the need for static state
in index_info.  That static state was a direct cause of coredumps; if
anything decided to elog(ERROR) partway through an index_info search of
pg_index, the next query would try to close a scan pointer that was
pointing at no-longer-valid memory.  Another example of the reasons to
avoid static state variables...

Files