Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id BB1702E0056 for ; Wed, 26 Mar 2008 10:15:47 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 31822-02 for ; Wed, 26 Mar 2008 10:15:29 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from qb-out-0506.google.com (qb-out-0506.google.com [72.14.204.226]) by postgresql.org (Postfix) with ESMTP id 3073D2E004A for ; Wed, 26 Mar 2008 10:15:37 -0300 (ADT) Received: by qb-out-0506.google.com with SMTP id o12so3949718qba.17 for ; Wed, 26 Mar 2008 06:15:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=ssEMC31H0k5bTX6q1m5GTMhzaTefMz5r2hZBx/zM/dw=; b=QXKtVwx5S4jGPnr051f9nljdQCtt/RPqbP0iM70e6jRfDNexT78wkb9t66AJFiUUEq6LnSVIaEWZiH97KKsWMDuo6DFbka7gK6xOMvTBOdyU6hUWThvlPwVrfelY0mm5Lx29mqM/ylIsmvs+/NiTW8ZxEnVZ930bORRJSIpkMWM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=mjR+cJNX1d7r4HBxdiquS3g2W4uF/zj6jUWnLWufzrYpgpxGRo6rkQUdmrg8KozVZnKPDPQ3IFiMaA3AeYQCs/LZrSriZ+ahL+Jidz6P12ERsAO5iF9DrP6eJi6BJRzb3KIGyhi6wZWncEf9aA7XopnUyYkHwv+ihE0Qd4FxjHA= Received: by 10.150.190.9 with SMTP id n9mr1929ybf.127.1206537335027; Wed, 26 Mar 2008 06:15:35 -0700 (PDT) Received: by 10.150.198.15 with HTTP; Wed, 26 Mar 2008 06:15:34 -0700 (PDT) Message-ID: <36e682920803260615v125638bdu5089600955fb2474@mail.gmail.com> Date: Wed, 26 Mar 2008 09:15:34 -0400 From: "Jonah H. Harris" To: Jack Subject: Re: Tuning Cc: pgsql-admin@postgresql.org In-Reply-To: <002601c88e02$5629fc10$027df430$@com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <002601c88e02$5629fc10$027df430$@com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200803/225 X-Sequence-Number: 28708 On Mon, Mar 24, 2008 at 6:56 PM, Jack wrote: > Is there a Postgres equivalent of tkprofs for tuning? No. But what you could do is combine several Postgres things to try and get the same information. IIRC, you could use: - log_parser_stats - log_planner_stats - log_executor_stats while running EXPLAIN ANALYZE on the query. psql -U user1 -d postgres > /tmp/pgprof.out 2>&1 <