X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 3235D8B9CCC for ; Tue, 8 Feb 2005 18:58:06 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 44708-02 for ; Tue, 8 Feb 2005 18:57:41 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 95A508B9F4C for ; Tue, 8 Feb 2005 18:57:41 +0000 (GMT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j18IvevX009191; Tue, 8 Feb 2005 13:57:40 -0500 (EST) To: "Ben Young" Cc: pgsql-performance@postgresql.org Subject: Re: Slow Restoration of a template1 Database (ALTER GROUP) In-reply-to: <41A1CBC76FDECC42B67946519C6677A901D301FB@pippin.int.etrials.com> References: <41A1CBC76FDECC42B67946519C6677A901D301FB@pippin.int.etrials.com> Comments: In-reply-to "Ben Young" message dated "Tue, 08 Feb 2005 13:23:55 -0500" Date: Tue, 08 Feb 2005 13:57:40 -0500 Message-ID: <9190.1107889060@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200502/124 X-Sequence-Number: 10453 "Ben Young" 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