Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id DA78F2E0047 for ; Tue, 22 Apr 2008 07:15:37 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 65473-09 for ; Tue, 22 Apr 2008 07:15:27 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from depesz.com (depesz.com [88.198.37.40]) by developer.postgresql.org (Postfix) with ESMTP id 9B1DB2E0046 for ; Tue, 22 Apr 2008 07:15:27 -0300 (ADT) Received: from depesz by depesz.com with local (Exim 4.63) (envelope-from ) id 1JoFX1-0001G7-F4; Tue, 22 Apr 2008 12:15:23 +0200 Date: Tue, 22 Apr 2008 12:15:23 +0200 From: hubert depesz lubaczewski To: Nacef LABIDI Cc: Roland Voegtli , pgsql-sql@postgresql.org Subject: Re: After updating dataset the record goes to the end of the dataset Message-ID: <20080422101523.GB17162@depesz.com> Reply-To: depesz@depesz.com References: <3B256469-4A00-44C3-8EB8-F49FA9F7259A@scnat.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/132 X-Sequence-Number: 30671 On Tue, Apr 22, 2008 at 12:10:41PM +0200, Nacef LABIDI wrote: > Yes I don't issue any sort statement, and I indeed want the data to be show > as it is stored in the database. But after updating a row (I don't update > the ID, just some fields), it keeps its same place on the DB but jumps to > the end of the dataset and by the way to the end of the DBGrid. why do you think it stays in the same place in db? besides - without "order by" you cannot depend on the order of rows. basically i treat them as in "random" order (which is not true, but helps me remember to never count on the "default" ordering. depesz -- quicksil1er: "postgres is excellent, but like any DB it requires a highly paid DBA. here's my CV!" :) http://www.depesz.com/ - blog dla ciebie (i moje CV)