mirror of
https://github.com/postgres/postgres.git
synced 2025-09-03 15:22:11 +03:00
Revert "Use Foreign Key relationships to infer multi-column join selectivity".
This commit reverts137805f89
as well as the associated commits015e88942
,5306df283
, and68d704edb
. We found multiple bugs in this feature, and there was concern about possible planner slowdown (though to be fair, exhibiting a very large slowdown proved difficult). The way forward requires a considerable rewrite, which may or may not be possible to accomplish in time for beta2. In my judgment reviewing the rewrite will be easier to accomplish starting from a clean slate, so let's temporarily revert what's there now. This also leaves us in a safe state if it turns out to be necessary to postpone the rewrite to the next development cycle. Discussion: <20160429102531.GA13701@huehner.biz>
This commit is contained in:
@@ -95,9 +95,6 @@ typedef struct RelationData
|
||||
Oid rd_oidindex; /* OID of unique index on OID, if any */
|
||||
Oid rd_replidindex; /* OID of replica identity index, if any */
|
||||
|
||||
/* data managed by RelationGetFKList: */
|
||||
List *rd_fkeylist; /* OIDs of foreign keys */
|
||||
|
||||
/* data managed by RelationGetIndexAttrBitmap: */
|
||||
Bitmapset *rd_indexattr; /* identifies columns used in indexes */
|
||||
Bitmapset *rd_keyattr; /* cols that can be ref'd by foreign keys */
|
||||
|
Reference in New Issue
Block a user