Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TVnvR-0000YD-L3 for pgsql-performance@postgresql.org; Tue, 06 Nov 2012 18:31:01 +0000 Received: from mail-ye0-f174.google.com ([209.85.213.174]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TVnvO-0007AW-SI for pgsql-performance@postgresql.org; Tue, 06 Nov 2012 18:31:01 +0000 Received: by mail-ye0-f174.google.com with SMTP id m12so156421yen.19 for ; Tue, 06 Nov 2012 10:30:58 -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=fUoT1YoTq9mZ4LWdr8DCm9c4n/eR7sx3TDqNVFly5gc=; b=Sz4FK3Q1J23vOdWp7ChBs97i8yBTnFayETATcmrcRyyfyfwq/vsWPNh5y1M9MBSOHS RteDPtPb79l/oTQDt/aSWZbrEZBY9ex7SO7Z1rg+kOLpQJ8LEetHEmrAq1e+StJv3VSC bQ65qxij91tlBb3SjSFgeYABhhzhgcR2S5/So+1SWmRcLrAHwbjUG1+A2215fuaB+Wvs vDzSnEYosM/94NgnrtrOkeXHBPNJB2v+BzWFwV5siGuoW9WrLKmPuQIXZWqnrVVWrR0F 0k6BK7TX3sxRktT5YTxehcUDtNkobBTJZq8Utx9uWYO9qGDYJVAzrJQmt+S4JuFvCOGW 3N0Q== Received: by 10.236.119.146 with SMTP id n18mr2015781yhh.18.1352226657943; Tue, 06 Nov 2012 10:30:57 -0800 (PST) Received: from [187.36.244.195] ([187.36.244.195]) by mx.google.com with ESMTPS id v8sm21366473yhi.15.2012.11.06.10.30.56 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 06 Nov 2012 10:30:57 -0800 (PST) Message-ID: <5099575A.1000503@gmail.com> Date: Tue, 06 Nov 2012 16:30:50 -0200 From: Rodrigo Rosenfeld Rosas User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.10) Gecko/20121027 Icedove/10.0.10 MIME-Version: 1.0 To: Tom Lane , Merlin Moncure CC: pgsql-performance@postgresql.org Subject: Re: Query completed in < 1s in PG 9.1 and ~ 700s in PG 9.2 References: <509944DE.6020400@gmail.com> <15781.1352223387@sss.pgh.pa.us> In-Reply-To: <15781.1352223387@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) X-Archive-Number: 201211/64 X-Sequence-Number: 48430 Em 06-11-2012 15:36, Tom Lane escreveu: > Merlin Moncure writes: >> Problem could also be no statistics (run ANALYZE to test) or some >> other configuration problem (like index locale), or a bona fide >> regression. > I'm wondering about join_collapse_limit in particular --- if that wasn't > cranked up in the 9.1 installation, it would be pure luck if you got a > good query plan for an example like this. I tried increasing it from 8 to 25 and it didn't make any difference. > Maybe that and/or other > parameter settings didn't get transposed to the 9.2 installation. diff /etc/postgresql/9.[12]/main/postgresql.conf 41c41 < data_directory = '/var/lib/postgresql/9.1/main' # use data in another directory --- > data_directory = '/var/lib/postgresql/9.2/main' # use data in another directory 43c43 < hba_file = '/etc/postgresql/9.1/main/pg_hba.conf' # host-based authentication file --- > hba_file = '/etc/postgresql/9.2/main/pg_hba.conf' # host-based authentication file 45c45 < ident_file = '/etc/postgresql/9.1/main/pg_ident.conf' # ident configuration file --- > ident_file = '/etc/postgresql/9.2/main/pg_ident.conf' # ident configuration file 49c49 < external_pid_file = '/var/run/postgresql/9.1-main.pid' # write an extra PID file --- > external_pid_file = '/var/run/postgresql/9.2-main.pid' # write an extra PID file 63c63 < port = 5433 # (change requires restart) --- > port = 5432 # (change requires restart) 556a557,558 > ssl_cert_file = '/etc/ssl/certs/ssl-cert-snakeoil.pem' > ssl_key_file = '/etc/ssl/private/ssl-cert-snakeoil.key' Any other idea?