Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 191271
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Alin Năstac <mrness@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Manuel McLure <manuel@mclure.org>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 191271 depends on: Show dependency tree
Bug 191271 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-09-04 17:12 0000
If dspam is configured using the postgresql back end, dspam.cron runs the
pgsql_purge.sql script, and then runs vacuumdb on all affected tables. However,
the last line in pgsql_purge.sql is "VACUUM ANALYZE;" which means that the
complete database will be vacuumed anyway - the calls to vacuumdb are
redundant.

------- Comment #1 From Alin Năstac 2007-09-09 20:33:50 0000 -------
Fixed in -r5 by removing vacuum command from pgsql_objects.sql.

It might seem the wrong way of fixing it, but I prefer doing things in a
consistent manner and cron script is the one who optimize the databases (see
mysql and sqlite cleaning procedures).

------- Comment #2 From Manuel McLure 2007-09-10 03:44:47 0000 -------
OK. There's still a problem in that the script is using "vacuum -f" which does
the equivalent of a VACUUM FULL. This is unnecessary on a highly updated table
since the space freed up by a plain VACUUM will be reused. Also, a VACUUM FULL
puts a lock on the whole table, which means that all dspam requests will fail
during the vacuum. Per the PostgreSQL docs: "The FULL option is not recommended
for routine use, but may be useful in special cases." Also, if an administrator
has configured their PostgreSQL server to include vacuum delays so that a
running vacuum has less effect on running queries, this means that the dspam
tables may be unavailable for  hours on a large database (this is my case.)

Do you want me to enter a new bug for this?

------- Comment #3 From Alin Năstac 2007-09-10 04:07:02 0000 -------
Fixed in -r6 by running vacuumdb -z instead -f.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug