Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UrSmy-0000cW-JO for pgsql-jdbc@arkaria.postgresql.org; Tue, 25 Jun 2013 12:56:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1UrSmy-0001nS-3a for pgsql-jdbc@arkaria.postgresql.org; Tue, 25 Jun 2013 12:56:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UrSmx-0001nM-Gk for pgsql-jdbc@postgresql.org; Tue, 25 Jun 2013 12:56:03 +0000 Received: from server.lerner.co.il ([69.55.231.200] helo=lerner.co.il) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UrSmt-0002c5-JU for pgsql-jdbc@postgresql.org; Tue, 25 Jun 2013 12:56:03 +0000 Received: by lerner.co.il (Postfix, from userid 1003) id A9EC45D6AF2; Tue, 25 Jun 2013 15:55:58 +0300 (IDT) X-DKIM: Sendmail DKIM Filter v2.8.3 lerner.co.il A9EC45D6AF2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lerner.co.il; s=MAILOUT; t=1372164958; bh=aAbwQRvxwYxgXXMSwL4PGflW8cR7b2UvHQnk8Y6XiDE=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=f6c6MIHCq6Tq1vLO+o7nsowRWY0wQ45hDpdnSp/ufgm4BAgBbgzpKUQSnXEaCBWIZ 8rnqNYIpCK5YcCumI9aDbKhyT4URkD4Xp3Arb8xRow00FHxYwa2gA9h2qdxEakX6f0 lfHJnHc7M+V5YwBJ/M7fcWO7Tr7G8xDKLVEnA6GQ= X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lerner.co.il X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no version=3.3.2 Received: from MacBookPro.local (bzq-79-176-109-145.red.bezeqint.net [79.176.109.145]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: reuven) by lerner.co.il (Postfix) with ESMTPSA id 0D8BA5D6812; Tue, 25 Jun 2013 15:55:52 +0300 (IDT) X-DKIM: Sendmail DKIM Filter v2.8.3 lerner.co.il 0D8BA5D6812 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lerner.co.il; s=MAILOUT; t=1372164954; bh=aAbwQRvxwYxgXXMSwL4PGflW8cR7b2UvHQnk8Y6XiDE=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=Go9aoAl2KWa1iYIfVfQLZbuL56jlwO0GCDDGpWVBeawA/Ai+2SNIvJ7xpiaWmfrrS 1qxlwgCdlaGc39nxA1wF0ZDOVJvm2xBZctRIh7HSS5FPsIT6Bh5wCukk8a7wb0o0Uz pWhD/AxijHM4lisq5uN4YjvOG6Ck0mhNOJPZKhdw= Message-ID: <51C99356.8000004@lerner.co.il> Date: Tue, 25 Jun 2013 15:55:50 +0300 From: "Reuven M. Lerner" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: Dave Cramer CC: List , kim+pg@alleroedderne.adsl.dk Subject: Re: Bound parameters on Linux are extremely slow (compared to unbound and/or Windows) References: <51A14091.7040909@lerner.co.il> <51A14769.1080409@lerner.co.il> <51A14D8C.7010201@lerner.co.il> <51C9907A.9030108@lerner.co.il> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -3.1 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org Hi, Dave. You wrote: > > Postgresql version < 9.2 suffers from a problem with bound parameters > where the planner does not choose a good plan with bound parameters. If > I were a betting man I would bet that your linux box is not running > version > 9.2 > > select version() will confirm We're actually running 9.2. But your note only talked about < 9.2 and > 9.2, so I'm not sure where that leaves us... Should we try the 9.3 beta? Also, would that account for the differences between Windows and Linux? Reuven -- Reuven M. Lerner -- Web development, consulting, and training Mobile: +972-54-496-8405 * US phone: 847-230-9795 http://lerner.co.il * Skype/AIM: reuvenlerner -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc