pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedvacuum locks up database
2+ messages / 2 participants
[nested] [flat]
* vacuum locks up database
@ 2003-05-02 18:33 jonesbl@WellsFargo.COM
0 siblings, 1 reply; 2+ messages in thread
From: jonesbl@WellsFargo.COM @ 2003-05-02 18:33 UTC (permalink / raw)
To: pgsql-admin
Postgres ver. 7.3.1 on HPUX:
I have a fairly large database. My big table has about 32,000,000 rows with
3 indexes. When I run vacuumdb and it gets to the big table, it churns for
about 3 hours and starts blocking other database users. Simple inserts into
that table timeout after 15 minutes.
I have increased vacuum_mem = 23768 and had no effect on the problem.
I have nice'd the psql client -19, but the resulting postgres process is
still running at it's original priority.
Is there anyway to force vacuum to run more as a background job and not
block others from accessing the database during the vacuum process?
What are the trade-offs for pushing vacuum_mem up even higher? Would that
help?
Bill Jones
Systems Architect
Middleware Services
Wells Fargo Services Company
Office --415.243.1364
PCS -- 415.254.3831 (4152543831@mobile.att.net)
Views expressed are mine. Only in unusual circumstances are they shared by
my employer.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: vacuum locks up database
@ 2003-05-02 21:10 Tom Lane <tgl@sss.pgh.pa.us>
parent: jonesbl@WellsFargo.COM
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2003-05-02 21:10 UTC (permalink / raw)
To: jonesbl@WellsFargo.COM; +Cc: pgsql-admin
jonesbl@WellsFargo.COM writes:
> Is there anyway to force vacuum to run more as a background job and not
> block others from accessing the database during the vacuum process?
Vacuum without the FULL option won't block others.
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2003-05-02 21:10 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-05-02 18:33 vacuum locks up database jonesbl@WellsFargo.COM
2003-05-02 21:10 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox