Re: increment Rows in an SQL Result Set postgresql

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-performance(at)postgresql(dot)org
Cc: Hassan Adekoya <hechy_man(at)yahoo(dot)com>
Subject: Re: increment Rows in an SQL Result Set postgresql
Date: 2006-07-15 23:53:30
Message-ID: 200607160153.31333.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

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/

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Joe Conway 2006-07-16 18:08:07 Re: Big differences in plans between 8.0 and 8.1
Previous Message Gabriele Turchi 2006-07-15 20:22:50 Re: Big differences in plans between 8.0 and 8.1