Re: Slow Restoration of a template1 Database (ALTER GROUP)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Ben Young" <Ben(dot)Young(at)etrials(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Slow Restoration of a template1 Database (ALTER GROUP)
Date: 2005-02-08 18:57:40
Message-ID: 9190.1107889060@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

"Ben Young" <Ben(dot)Young(at)etrials(dot)com> writes:
> When trying to restore my template1 database (7.3.4) I am
> experiencing very long delays. For 600 users (pg_shadow)
> and 4 groups (pg_group) it is taking 1hr and 17 minutes to
> complete. All of the create user statements are processed in a
> matter of seconds, but each alter groups statement takes
> about 10 seconds to process.

I tried doing 1000 ALTER GROUP ADD USER commands in 7.3, and didn't
see any particular performance problem. Could we see the output
of "VACUUM FULL VERBOSE pg_group"?

regards, tom lane

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2005-02-08 19:59:29 Re: Slow Restoration of a template1 Database (ALTER GROUP)
Previous Message Ben Young 2005-02-08 18:23:55 Slow Restoration of a template1 Database (ALTER GROUP)