Vadim B. Mikheev
2f8c2e997b
Fix deleted tuples re-incarnation possible when vacuum transaction
...
start time equal to tuple->t_tmax.
Privent shrinking if there are tuples modifyed by running transactions
(it concerns system relations only, currently).
1997-06-03 01:29:26 +00:00
Vadim B. Mikheev
b45128f1c3
Kill re-incarnated bug arround
...
Assert ( --Vnpages > 0 );
and
Assert ( --Fnpages > 0 );
1997-05-05 10:01:02 +00:00
Vadim B. Mikheev
3055eeff93
More informative NOTICEs in tuple checks.
1997-04-30 03:05:43 +00:00
Vadim B. Mikheev
3c461c8397
Analyze data only if specified and specified attrs only.
1997-04-23 06:28:48 +00:00
Vadim B. Mikheev
a0d63ac98c
The patch fixes a rare bug that may occur when one tries to vacuum a single
...
table. The table name is de-allocated by the CommitTransactionCommand()
in vc_init() before it is copied in VacRel.data and sometimes this causes
a SIGSEGV. My patch simply moves the strcpy before vc_init.
Submitted by Massimo Dal Zotto <dz@cs.unitn.it>.
1997-04-17 01:45:36 +00:00
Marc G. Fournier
5dcc9bef6e
Patch for Solaris 2.5 from: adrian@waltham.harvard.net
1997-04-15 18:18:45 +00:00
Vadim B. Mikheev
1a3c7371e8
vc_getrels(p, VacRelP) returns NIL for special relations (indices,
...
sequences,...) and vc_delhilowstats(NULL->vrl_relid) ...
1997-04-02 03:48:01 +00:00
Bruce Momjian
ea36b0d3cd
Add missing paren.
1997-03-10 15:08:57 +00:00
Bruce Momjian
766bdd2bb5
Vacuum cleanups from Massimo.
1997-03-09 23:29:15 +00:00
Bruce Momjian
d8023a00bd
Fix vacuum crash Vadim found.
1997-03-09 07:12:36 +00:00
Bruce Momjian
22cabc5514
Reverse patch for Vadims problem.
1997-03-07 00:59:05 +00:00
Bruce Momjian
da90363c12
Fix vacuum bug Vadim found with text fields.
1997-03-06 18:38:35 +00:00
Vadim B. Mikheev
74bd93d597
Not understandable fix of strange bug in vacuum statistic functions.
1997-03-06 11:41:09 +00:00
Bruce Momjian
e230c0b672
Clarify clearing of attribute stats memory.
1997-02-18 04:13:57 +00:00
Bruce Momjian
2300ac0dc4
Add attribute optimization statistics.
1997-02-07 16:24:12 +00:00
Vadim B. Mikheev
daf75276d4
New func _vc_scanoneind: scan one index relation to update statistic
...
in pg_class if no one page was reapped by vacuum.
1997-01-29 02:59:03 +00:00
Marc G. Fournier
37e8621623
The check should be for getrusage(), not rusage() ... change the defines
...
to reflect what configure is going to define when the time comes
1997-01-25 19:29:47 +00:00
Marc G. Fournier
60265ee651
Switch over NEED_RUSAGE to HAVE_RUSAGE for configure
1997-01-24 23:48:32 +00:00
Bruce Momjian
84876289cc
Cast constants to the type of the other binary operand.
...
Invalidate vacuum relation cache to use new row counts from vacuum.
1997-01-22 01:44:02 +00:00
Bruce Momjian
0d3bf78e0b
Added VERBOSE option to vacuum command.
1997-01-13 03:45:33 +00:00
Vadim B. Mikheev
c6a605705c
index_insert has now HeapRelation as last param (for unique index
...
implementation).
1997-01-10 10:00:39 +00:00
Vadim B. Mikheev
068a4c53af
Closing opened indices.
1997-01-05 10:58:15 +00:00
Vadim B. Mikheev
03659a262e
Added: dynamic re-moving page from list of pages usable for shrinking
...
if its free-space < min_tuple_len.
1996-11-29 10:27:59 +00:00
Vadim B. Mikheev
c7cba5780f
Fix for "might be used uninitialized" warnings.
1996-11-28 04:37:38 +00:00
Vadim B. Mikheev
f0c5a6c614
Shrinking and other things.
1996-11-27 07:27:20 +00:00
Marc G. Fournier
7385619f14
Clean it up so that it compiles
1996-11-06 08:21:43 +00:00
Marc G. Fournier
ce4c0ce1de
Some compile failure fixes from Keith Parks <emkxp01@mtcc.demon.co.uk>
1996-11-06 06:52:23 +00:00
Marc G. Fournier
510ebf75a1
Another first pass at cleaning up the #includes
1996-11-03 23:57:43 +00:00
Marc G. Fournier
f36b2560a4
Major code cleanups from D'arcy (-Wall -Werror)
1996-10-23 07:42:13 +00:00
Vadim B. Mikheev
bc50067426
1. Reap deleted/unused tuples on page-base
...
2. Reap unused tuples too
3. Reap empty pages
4. Check if a page is initialized, initialize it if not
and reap it
5. Binary search in list of reapped pages/tids to check
is the heap' tid pointed by a index' tuple on this list
(it's mu-u-uch faster)
1996-10-18 08:13:36 +00:00
Bruce Momjian
aefb294e13
Added restriction to tables vacuum'able.
...
Added NOTICE messages for bad table names.
1996-10-03 20:11:41 +00:00
Bruce Momjian
267ef0a642
Allow vacuum to run for only one table. Fixes allocation bug.
1996-10-03 04:19:29 +00:00
Marc G. Fournier
d31084e9d1
Postgres95 1.01 Distribution - Virgin Sources
1996-07-09 06:22:35 +00:00