diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2011-12-18 15:49:00 -0500 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2011-12-18 15:50:37 -0500 |
| commit | 3695a555136a6d179cac8ae48d5f90171d5b30e9 (patch) | |
| tree | efb7fb5afb3dea1292c9a50635b53215cc548e64 /src/include/nodes | |
| parent | 19d223171801dda36f84e24dc89c9fbab1ababad (diff) | |
| download | postgresql-3695a555136a6d179cac8ae48d5f90171d5b30e9.tar.gz | |
Replace simple constant pg_am.amcanreturn with an AM support function.
The need for this was debated when we put in the index-only-scan feature,
but at the time we had no near-term expectation of having AMs that could
support such scans for only some indexes; so we kept it simple. However,
the SP-GiST AM forces the issue, so let's fix it.
This patch only installs the new API; no behavior actually changes.
Diffstat (limited to 'src/include/nodes')
| -rw-r--r-- | src/include/nodes/relation.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/nodes/relation.h b/src/include/nodes/relation.h index a400960a27..74c060b9b6 100644 --- a/src/include/nodes/relation.h +++ b/src/include/nodes/relation.h @@ -490,8 +490,8 @@ typedef struct IndexOptInfo bool unique; /* true if a unique index */ bool immediate; /* is uniqueness enforced immediately? */ bool hypothetical; /* true if index doesn't really exist */ + bool canreturn; /* can index return IndexTuples? */ bool amcanorderbyop; /* does AM support order by operator result? */ - bool amcanreturn; /* can AM return IndexTuples? */ bool amoptionalkey; /* can query omit key for the first column? */ bool amsearcharray; /* can AM handle ScalarArrayOpExpr quals? */ bool amsearchnulls; /* can AM search for NULL/NOT NULL entries? */ |
