Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id DD2FDF424B1 for ; Sun, 8 Apr 2012 23:15:40 -0300 (ADT) Received: from mail-qa0-f42.google.com ([209.85.216.42]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SH48n-0004o2-6L for pgsql-hackers@postgresql.org; Mon, 09 Apr 2012 02:15:40 +0000 Received: by qafi31 with SMTP id i31so1966400qaf.1 for ; Sun, 08 Apr 2012 19:15:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent :x-gm-message-state; bh=mf0Lv+N5YdxQRny2R80Do9nEnulI1NmrgTmI04LSNhc=; b=cpkZ568e/AcoLkibwC/QKGk69rFgLn+XF4wULFOkgVD8JKxXLxK15m2KFXm3VTUF6r /3z29v5vhQi1VKCkmYBUe1mqBVweyFs2niSpQmJMZuRgjlTPShxFZhFvc/ntruezGNSr xrrxzTMUwKJuJGVuXv8Nm+T18nLnvCsx0/2WZKUKa96KZS5dXGFkMHQk6RT0fe3a8X6F sFTe9LJRPO+VzwYx0bBiOVnBJV19nU1pyyWuzmS26gmGflEp3jdypuze1XZRxCobLvfB Kt3dcdXphXOfepGJmurs2wyoXtZwehGnf9F37ZInPBoNILXXYjJhE2ejZyjQ5WZQlzJn Yp/g== Received: by 10.224.182.201 with SMTP id cd9mr7155203qab.92.1333937723049; Sun, 08 Apr 2012 19:15:23 -0700 (PDT) Received: from tornado.leadboat.com (ip68-105-236-221.hr.hr.cox.net. [68.105.236.221]) by mx.google.com with ESMTPS id hm8sm21953914qab.0.2012.04.08.19.15.21 (version=SSLv3 cipher=OTHER); Sun, 08 Apr 2012 19:15:22 -0700 (PDT) Date: Sun, 8 Apr 2012 22:15:19 -0400 From: Noah Misch To: Michael Meskes , Boszormenyi Zoltan , Robert Haas , PG Hackers , Heikki Linnakangas , Bruce Momjian Subject: Re: ECPG FETCH readahead Message-ID: <20120409021519.GD11987@tornado.leadboat.com> References: <20120306110658.GC15988@tornado.leadboat.com> <4F6D9893.3030300@cybertec.at> <20120329004323.GA17329@tornado.leadboat.com> <4F74409C.3050904@cybertec.at> <20120329170341.GA4142@tornado.leadboat.com> <4F74E6A7.8040204@cybertec.at> <20120407112008.GA2286@feivel.credativ.lan> <20120407155042.GB11987@tornado.leadboat.com> <20120408142501.GA21513@feivel.credativ.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120408142501.GA21513@feivel.credativ.lan> User-Agent: Mutt/1.5.18 (2008-05-17) X-Gm-Message-State: ALoCoQmOWMHANepRse/CbYLfz+YZ7DDHAL8+C0yKwv2qq/fsOp3PFuOugpdW0nvT8INpYLqxwX49 X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201204/367 X-Sequence-Number: 206170 On Sun, Apr 08, 2012 at 04:25:01PM +0200, Michael Meskes wrote: > On Sat, Apr 07, 2012 at 11:50:42AM -0400, Noah Misch wrote: > > I do call your attention to a question I raised in my second review: if a > > program contains "DECLARE foo READAHEAD 5 CURSOR FOR ..." and the user runs > > the program with ECPGFETCHSZ=10 in the environment, should that cursor use a > > readahead window of 5 or of 10? Original commentary: > > http://archives.postgresql.org/message-id/20120329004323.GA17329@tornado.leadboat.com > > I'd say it should be 5. I don't like an environment variable overwriting a > hard-coded setting. I think this is what you, Noah, thought, too, right? Yes.