X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 160779FB210 for ; Sat, 15 Jul 2006 20:53:47 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 98329-01 for ; Sat, 15 Jul 2006 23:53:38 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from mail.gmx.net (mail.gmx.de [213.165.64.21]) by postgresql.org (Postfix) with SMTP id 5F7EA9FA60B for ; Sat, 15 Jul 2006 20:53:38 -0300 (ADT) Received: (qmail invoked by alias); 15 Jul 2006 23:53:36 -0000 Received: from dslb-084-063-102-169.pools.arcor-ip.net (EHLO colt.pezone.net) [84.63.102.169] by mail.gmx.net (mp034) with SMTP; 16 Jul 2006 01:53:36 +0200 X-Authenticated: #495269 From: Peter Eisentraut To: pgsql-performance@postgresql.org Subject: Re: increment Rows in an SQL Result Set postgresql Date: Sun, 16 Jul 2006 01:53:30 +0200 User-Agent: KMail/1.9.1 Cc: Hassan Adekoya References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607160153.31333.peter_e@gmx.net> X-Y-GMX-Trusted: 0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200607/155 X-Sequence-Number: 20015 Hassan Adekoya wrote: > I will like to preserve ordering.... Tables are inherently unordered. If you want a particular order, you need to use the ORDER BY clause. And you will need to have a column to sort by. If you don't have one, the generate_series() function may help. This has nothing to do with performance, I gather, so it might be more appropriate for the pgsql-sql list. -- Peter Eisentraut http://developer.postgresql.org/~petere/