mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-04 21:07:00 +02:00
e6858e6657
Add a column pg_class.relallvisible to remember the number of pages that were all-visible according to the visibility map as of the last VACUUM (or ANALYZE, or some other operations that update pg_class.relpages). Use relallvisible/relpages, instead of an arbitrary constant, to estimate how many heap page fetches can be avoided during an index-only scan. This is pretty primitive and will no doubt see refinements once we've acquired more field experience with the index-only scan mechanism, but it's way better than using a constant. Note: I had to adjust an underspecified query in the window.sql regression test, because it was changing answers when the plan changed to use an index-only scan. Some of the adjacent tests perhaps should be adjusted as well, but I didn't do that here. |
||
---|---|---|
.. | ||
.gitignore | ||
catalog.h | ||
catversion.h | ||
dependency.h | ||
duplicate_oids | ||
genbki.h | ||
heap.h | ||
index.h | ||
indexing.h | ||
namespace.h | ||
objectaccess.h | ||
objectaddress.h | ||
pg_aggregate.h | ||
pg_am.h | ||
pg_amop.h | ||
pg_amproc.h | ||
pg_attrdef.h | ||
pg_attribute.h | ||
pg_auth_members.h | ||
pg_authid.h | ||
pg_cast.h | ||
pg_class.h | ||
pg_collation_fn.h | ||
pg_collation.h | ||
pg_constraint.h | ||
pg_control.h | ||
pg_conversion_fn.h | ||
pg_conversion.h | ||
pg_database.h | ||
pg_db_role_setting.h | ||
pg_default_acl.h | ||
pg_depend.h | ||
pg_description.h | ||
pg_enum.h | ||
pg_extension.h | ||
pg_foreign_data_wrapper.h | ||
pg_foreign_server.h | ||
pg_foreign_table.h | ||
pg_index.h | ||
pg_inherits_fn.h | ||
pg_inherits.h | ||
pg_language.h | ||
pg_largeobject_metadata.h | ||
pg_largeobject.h | ||
pg_namespace.h | ||
pg_opclass.h | ||
pg_operator.h | ||
pg_opfamily.h | ||
pg_pltemplate.h | ||
pg_proc_fn.h | ||
pg_proc.h | ||
pg_rewrite.h | ||
pg_seclabel.h | ||
pg_shdepend.h | ||
pg_shdescription.h | ||
pg_shseclabel.h | ||
pg_statistic.h | ||
pg_tablespace.h | ||
pg_trigger.h | ||
pg_ts_config_map.h | ||
pg_ts_config.h | ||
pg_ts_dict.h | ||
pg_ts_parser.h | ||
pg_ts_template.h | ||
pg_type_fn.h | ||
pg_type.h | ||
pg_user_mapping.h | ||
storage.h | ||
toasting.h | ||
unused_oids |