Skip site navigation (1) Skip section navigation (2)

pgbench -i order of vacuum

From: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: pgbench -i order of vacuum
Date: 2012-07-20 00:05:36
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Is there a reason to vacuum the pgbench_* tables after the indexes on
them are built, rather than before?

Since the indexes are on fresh tables, they can't have anything that
needs to be cleaned.

I don't think the current order accomplishes anything, except to slow
down large initializations by ~25%.

The attached patch moves the vacuums up.

I also made -n skip the vacuums altogether.  Since -n is allowed under
-i, it would be nice if it did something, and there is only one
intuitive thing for it to do.  I don't know what the use case for is,
but I think I've heard grumbling about it before.



Attachment: pgbench_vacuum_order_v1.patch
Description: application/octet-stream (2.7 KB)


pgsql-hackers by date

Next:From: Tom LaneDate: 2012-07-20 00:05:41
Subject: Re: CHECK NO INHERIT syntax
Previous:From: Tom LaneDate: 2012-07-20 00:02:42
Subject: Re: 2GB limit for temp_file_limit on 32bit platform

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group