X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 4C01053484 for ; Wed, 30 Mar 2005 15:13:03 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 01243-08 for ; Wed, 30 Mar 2005 14:13:01 +0000 (GMT) Received: from ra.sai.msu.su (ra.sai.msu.su [158.250.29.2]) by svr1.postgresql.org (Postfix) with ESMTP id 59A66534C1 for ; Wed, 30 Mar 2005 15:12:53 +0100 (BST) Received: from ra (ra [158.250.29.2]) by ra.sai.msu.su (8.12.10/8.12.10) with ESMTP id j2UECb5Q020735; Wed, 30 Mar 2005 18:12:38 +0400 (MSD) Date: Wed, 30 Mar 2005 18:12:37 +0400 (MSD) From: Oleg Bartunov X-X-Sender: megera@ra.sai.msu.su To: lucas@presserv.org Cc: pgsql-sql@postgresql.org Subject: Re: New record position In-Reply-To: <20050330105017.miuieky7u64gscgc@www.presserv.org> Message-ID: References: <20050330105017.miuieky7u64gscgc@www.presserv.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.336 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE X-Spam-Level: X-Archive-Number: 200503/388 X-Sequence-Number: 20867 This is a feature of relational databases, you should explicitly specify ordering if you want persistent order. btw, why do you bothering ? Oleg On Wed, 30 Mar 2005 lucas@presserv.org wrote: > Hello, > I am using Slackware Linux 10, Postgresql 8.0.1. > My computer had a incorrectly power down (last week) and I have executed the > vacuum command: > VACCUM FULL ANALYZE VERBOSE; > to recicle and verify my database. > Before the power-down, all records had inserted into a table have displayed at > LAST record. Like: > SELECT * from tb1; > f1 | f2 > ------|-------- > rec1 | vl1 > > INSERT into tb1 values ('rec2','vl2'); > SELECT * from tb1; > f1 | f2 > ------|-------- > rec1 | vl1 > rec2 | vl2 > > But After the power-down and vacuum, the new records inserted have appeared in > random location (FIRST, between other records, etc...). Ie: > > INSERT into tb1 values ('rec3','vl3'); > SELECT * from tb1; > f1 | f2 > ------|-------- > rec1 | vl1 > rec3 | vl3 <<===== > rec2 | vl2 > > Why it? I can't undestand why the new record location was change. Shouldn't it > apper at the LAST record??? > What need I do?? > Thank you. > -------- > Lucas Vendramin > Brazil > > ---------------------------(end of broadcast)--------------------------- > TIP 8: explain analyze is your friend > Regards, Oleg _____________________________________________________________ Oleg Bartunov, sci.researcher, hostmaster of AstroNet, Sternberg Astronomical Institute, Moscow University (Russia) Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/ phone: +007(095)939-16-83, +007(095)939-23-83