postgresql/src/backend/commands
Heikki Linnakangas dcf8409985 Don't reset pg_class.reltuples and relpages in VACUUM, if any pages were
skipped. We could update relpages anyway, but it seems better to only
update it together with reltuples, because we use the reltuples/relpages
ratio in the planner. Also don't update n_live_tuples in pgstat.

ANALYZE in VACUUM ANALYZE now needs to update pg_class, if the
VACUUM-phase didn't do so. Added some boolean-passing to let analyze_rel
know if it should update pg_class or not.

I also moved the relcache invalidation (to update rd_targblock) from
vac_update_relstats to where RelationTruncate is called, because
vac_update_relstats is not called for partial vacuums anymore. It's more
obvious to send the invalidation close to the truncation that requires it.

Per report by Ned T. Crigler.
2008-12-17 09:15:03 +00:00
..
aggregatecmds.c In CREATE AGGREGATE, allow the transition datatype to be "internal", but only 2008-11-14 19:47:50 +00:00
alter.c Rearrange ALTER TABLE syntax processing as per my recent proposal: the 2008-06-15 01:25:54 +00:00
analyze.c Don't reset pg_class.reltuples and relpages in VACUUM, if any pages were 2008-12-17 09:15:03 +00:00
async.c Revert SIGUSR1 multiplexing patch, per Tom's objection. 2008-12-09 15:59:39 +00:00
cluster.c CLUSTER VERBOSE and corresponding clusterdb --verbose option 2008-11-24 08:46:04 +00:00
comment.c Remove all uses of the deprecated functions heap_formtuple, heap_modifytuple, 2008-11-02 01:45:28 +00:00
conversioncmds.c Make CREATE CONVERSION verify that a putative encoding conversion function 2008-11-14 17:40:56 +00:00
copy.c Clean up the API for DestReceiver objects by eliminating the assumption 2008-11-30 20:51:25 +00:00
dbcommands.c Implement ALTER DATABASE SET TABLESPACE to move a whole database (or at least 2008-11-07 18:25:07 +00:00
define.c Update copyrights in source tree to 2008. 2008-01-01 19:46:01 +00:00
discard.c Make DISCARD ALL discard advisory locks, too. Marko Kreen 2008-11-26 01:21:08 +00:00
explain.c Some infrastructure changes for the upcoming auto-explain contrib module: 2008-11-19 01:10:24 +00:00
functioncmds.c Default values for function arguments 2008-12-04 17:51:28 +00:00
indexcmds.c Implement comparison of generic records (composite types), and invent a 2008-10-13 16:25:20 +00:00
lockcmds.c Create a separate grantable privilege for TRUNCATE, rather than having it be 2008-09-08 00:47:41 +00:00
Makefile Refactor backend makefiles to remove lots of duplicate code 2008-02-19 10:30:09 +00:00
opclasscmds.c Remove all uses of the deprecated functions heap_formtuple, heap_modifytuple, 2008-11-02 01:45:28 +00:00
operatorcmds.c Clean up the loose ends in selectivity estimation left by my patch for semi 2008-08-16 00:01:38 +00:00
portalcmds.c Ensure that the contents of a holdable cursor don't depend on out-of-line 2008-12-01 17:06:21 +00:00
prepare.c Remove pg_plan_queries()'s now-useless needSnapshot parameter. It's useless 2008-12-13 02:29:22 +00:00
proclang.c Default values for function arguments 2008-12-04 17:51:28 +00:00
schemacmds.c Remove all uses of the deprecated functions heap_formtuple, heap_modifytuple, 2008-11-02 01:45:28 +00:00
sequence.c Remove all uses of the deprecated functions heap_formtuple, heap_modifytuple, 2008-11-02 01:45:28 +00:00
tablecmds.c Code review for CREATE OR REPLACE VIEW patch. Do things in a saner order to 2008-12-15 21:35:31 +00:00
tablespace.c Remove all uses of the deprecated functions heap_formtuple, heap_modifytuple, 2008-11-02 01:45:28 +00:00
trigger.c Fix failure to ensure that a snapshot is available to datatype input functions 2008-12-13 02:00:20 +00:00
tsearchcmds.c Remove all uses of the deprecated functions heap_formtuple, heap_modifytuple, 2008-11-02 01:45:28 +00:00
typecmds.c Add a "LIKE = typename" clause to CREATE TYPE for base types. This allows 2008-11-30 19:01:29 +00:00
user.c Remove all uses of the deprecated functions heap_formtuple, heap_modifytuple, 2008-11-02 01:45:28 +00:00
vacuum.c Don't reset pg_class.reltuples and relpages in VACUUM, if any pages were 2008-12-17 09:15:03 +00:00
vacuumlazy.c Don't reset pg_class.reltuples and relpages in VACUUM, if any pages were 2008-12-17 09:15:03 +00:00
variable.c Improve snapshot manager by keeping explicit track of snapshots. 2008-05-12 20:02:02 +00:00
view.c Department of second thoughts: further experimentation with CREATE OR REPLACE 2008-12-16 00:56:12 +00:00