Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TidyP-0008V9-CX for pgsql-admin@arkaria.postgresql.org; Wed, 12 Dec 2012 04:31:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TidyO-0001It-CE for pgsql-admin@arkaria.postgresql.org; Wed, 12 Dec 2012 04:31:08 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TidyN-0001Io-F1 for pgsql-admin@postgresql.org; Wed, 12 Dec 2012 04:31:07 +0000 Received: from mail-da0-f50.google.com ([209.85.210.50]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TidyL-0005RR-LV for pgsql-admin@postgresql.org; Wed, 12 Dec 2012 04:31:06 +0000 Received: by mail-da0-f50.google.com with SMTP id h15so88816dan.37 for ; Tue, 11 Dec 2012 20:31:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=zx01A876K2QEs0yWHzN9RqVhhlNlHbfQ4AuHl6EJMRY=; b=j0cw3grbRB2VcsRHqOk0WcnJZsqycOFaPeURFwBvSSJfU2PNeMH5bSSg0Ux4BDuz1X n3kbQ86lWtOcNgd2prc8Oj0+t7QqAP9kBdcsHaTRQAV94ymYShJ6szrE6QjNYBxFkf1u YbBxELyXYf4bEix2JtUa+XMxY1lUrtj52A/SK8RY6Pan5sYXvqkpRWxtNRRfes5icxL+ m33pgGlqd/PbZHRj1iDitMJyU+cYfFqRR7pIb85eyd4/4WmbUEPM0bbVVxa97NdZ3e4z 1HaptMcuyzC185PCCo79suzlj3VniinBGsv/cTUO5PGWA0BHvZ7r3DR8sbodnnDd1zua Vn7A== Received: by 10.68.237.167 with SMTP id vd7mr1396969pbc.161.1355286664534; Tue, 11 Dec 2012 20:31:04 -0800 (PST) Received: from [192.168.1.9] ([116.226.40.101]) by mx.google.com with ESMTPS id l5sm15073917paz.14.2012.12.11.20.31.01 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 11 Dec 2012 20:31:03 -0800 (PST) Message-ID: <50C80882.2010502@gmail.com> Date: Wed, 12 Dec 2012 12:30:58 +0800 From: Rural Hunter User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Sergey Konoplev CC: pgsql-admin Subject: Re: Massive table bloat References: <1355242268184-5736111.post@n5.nabble.com> <1355260487663-5736180.post@n5.nabble.com> <50C7FCAF.1080502@gmail.com> <50C800B6.6060306@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -1.6 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org 于 2012/12/12 12:24, Sergey Konoplev 写道: > On Tue, Dec 11, 2012 at 7:57 PM, Rural Hunter wrote: >> I do have psql installed. I'm on the db server. >> $ psql >> psql.bin (9.1.0) >> Type "help" for help. >> >> postgres=# \q >> $ ./pgcompactor -a -u >> DatabaseChooserError Can not find an adapter. at >> /loader/0x2539f18/PgToolkit/DatabaseChooser.pm line 63. > You are running it with user postgres, correct? > > Can you show me the output of the following command, please? > > echo 'SELECT 1;' | psql -q -A -t -X -U postgres -P null="" No. I was running it with another db super user. should it only be run by postgres? $ echo 'SELECT 1;' | psql -q -A -t -X -U postgres -P null="" Password for user postgres: 1 > >> 于 2012/12/12 11:46, Sergey Konoplev 写道: >> >>> On Tue, Dec 11, 2012 at 7:40 PM, Rural Hunter >>> wrote: >>>> I downloaded pgtoolkit-v1.0beta3-fatscripts.tar.gz and tested it. I got >>>> error when trying this: >>>> ./pgcompactor -a -u >>>> DatabaseChooserError Can not find an adapter. at >>>> /loader/0x1c26f18/PgToolkit/DatabaseChooser.pm line 63. >>>> ./pgcompactor -d testdb -u >>>> DatabaseChooserError Can not find an adapter. at >>>> /loader/0x1156f50/PgToolkit/DatabaseChooser.pm line 63. >>> You need to have either psql or DBD::PgPP or DBD::Pg on your machine. >>> The last one is recommended. >>> >>>> 于 2012/12/12 5:27, Sergey Konoplev 写道: >>>> >>>>> On Tue, Dec 11, 2012 at 1:14 PM, Michael Sawyers >>>>> wrote: >>>>>> Thanks for the tool suggestion. I already know that I will be refused >>>>>> permission to use it on a live db for the first run here, but I will be >>>>>> using this on several test machines that I am sure are bloated to prove >>>>>> the >>>>>> point and get this added into the standard toolkit here. >>>>> If you will have any feedback considering pgcompactor feel free to >>>>> write me directly. I am going to publish a new release in the nearest >>>>> days so I may include your issues in it. >>>>> >>>>> ps. I have been using this tool constantly on more than 40 DB servers >>>>> for more than a year so it is tested quite good. >>>>> >>>>> -- >>>>> Sergey Konoplev >>>>> Database and Software Architect >>>>> http://www.linkedin.com/in/grayhemp >>>>> >>>>> Phones: >>>>> USA +1 415 867 9984 >>>>> Russia, Moscow +7 901 903 0499 >>>>> Russia, Krasnodar +7 988 888 1979 >>>>> >>>>> Skype: gray-hemp >>>>> Jabber: gray.ru@gmail.com >>>>> >>>>> >>> >>> -- >>> Sergey Konoplev >>> Database and Software Architect >>> http://www.linkedin.com/in/grayhemp >>> >>> Phones: >>> USA +1 415 867 9984 >>> Russia, Moscow +7 901 903 0499 >>> Russia, Krasnodar +7 988 888 1979 >>> >>> Skype: gray-hemp >>> Jabber: gray.ru@gmail.com >>> > > > -- > Sergey Konoplev > Database and Software Architect > http://www.linkedin.com/in/grayhemp > > Phones: > USA +1 415 867 9984 > Russia, Moscow +7 901 903 0499 > Russia, Krasnodar +7 988 888 1979 > > Skype: gray-hemp > Jabber: gray.ru@gmail.com > -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin