Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 84F0E16FA502 for ; Mon, 9 Jul 2012 10:22:26 -0300 (ADT) Received: from smtp.optionshouse.com ([38.98.137.6] helo=smtp.peak6.com) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SoDuy-0001Iu-Tc for pgsql-performance@postgresql.org; Mon, 09 Jul 2012 13:22:25 +0000 X-AuditID: 0a64cb1e-b7f856d00000287c-7f-4ffadae776da Message-ID: <4FFADB02.7010300@optionshouse.com> Date: Mon, 9 Jul 2012 08:22:10 -0500 From: Shaun Thomas Reply-To: Organization: Peak6 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: Craig Ringer CC: Gregg Jaskiewicz , Misa Simic , Hermann Matthes , Subject: Re: Paged Query References: <4FF43638.5080301@web.de> <4FFAC85E.4010607@ringerc.id.au> In-Reply-To: <4FFAC85E.4010607@ringerc.id.au> Content-Type: text/plain; charset="UTF-8"; format=flowed content-transfer-encoding: 7bit X-Originating-IP: [10.10.201.64] X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrOIsWRmVeSWpSXmKPExsXClcIrofvi1i9/g3WnWS02XZSz2PznHKvF xlsTmSyuzzzHbHHpwFMmB1aPnbPusntc2DeN3WPW9ImMHrefbWMJYIlqYLRJzMvLL0ksSVVI SS1OtlXyLyjJzM8r9sgvLU5VcMksTs5JzMxNLVJSyEyxVTJXUijISUxOzU3NK7FVSiwoSM1L UbLjUsAANkBlmXkKqXnJ+SmZeem2Sp7B/roWFqaWuoZKdvHIIKGTJWPO5zbWgga2isWX57M2 MD5i6WLk4JAQMJH4M9+si5ETyBSTuHBvPRuIzSugL7H47jFmEJtFQEViyae3YHE2AV2JSf0r wGwhoHjf2RtMIDa/gLDEvg9NYPWiAiESDV3/WSHmCEqcnPmEBcQWEdCQ2LXiDlA9FwezwGxG iRk734IVCQsoSUzs3MsOMfQCo8ScVgcQmxNo2aHT+8HizAIWEovfHISy5SW2v53DDFGvKrGi eSIbxAMKEv+vvGOawCg0C8nuWUjaZyFpX8DIvIpRvLgsMTkj07SgOLekwFCvIDUx20wvL7Vk EyM40k/L7WCcvlTxEKMAB6MSD+/Eub/8hVgTy4orcw8xSnAwK4nwfjwHFOJNSaysSi3Kjy8q zUktPsRoCgy0icxSosn5wCSUVxJvaGxoaWppYmZpbmxsoCTO+2vtGX8hgXRgcshOTS1ILYLp Y+LglGpgnC4lL6cve13BWXxxje6WLrEr/CZ23xz0Ga8c2PriWNEFkWlnGJfbT9ZJ7H1+KXuO 0IMHZWf6tsea3+ed++zG4pzYIEdJ71k/ijevYNB4OuNqPfuRiytbLD+YRYSvEeSUPmZyMp7n mZ7VjVfOV33L9fkYJA5c08znlJH+3Gr7MzC6c4G0429vJZbijERDLeai4kQAMijE5QoDAAA= X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201207/93 X-Sequence-Number: 47274 On 07/09/2012 07:02 AM, Craig Ringer wrote: > Do do cursors. Did you mean "Do not use cursors" here? > Then the user goes away on a week's holiday and leaves their PC at > your "next" button. This exactly. Cursors have limited functionality that isn't directly disruptive to the database in general. At the very least, the transaction ID reservation necessary to preserve a cursor long-term can wreak havoc on your transaction ID wraparound if you have a fairly busy database. I can't think of a single situation where either client caching or LIMIT/OFFSET can't supplant it with better risk levels and costs. -- Shaun Thomas OptionsHouse | 141 W. Jackson Blvd. | Suite 500 | Chicago IL, 60604 312-444-8534 sthomas@optionshouse.com ______________________________________________ See http://www.peak6.com/email_disclaimer/ for terms and conditions related to this email