Skip site navigation (1) Skip section navigation (2)

some questions

From: Ludwig Lim <lud_nowhere_man(at)yahoo(dot)com>
To: PostgreSQL Mailing List <pgsql-novice(at)postgresql(dot)org>
Subject: some questions
Date: 2002-07-27 02:26:15
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice

    When I do the ff sql statement
    select foo
    from bar
    limit n;

    Is it the same as :
    select foo
    from bar
    order by oid
    limit n;

   The the displaying of the result of a SELECT
statement without the ORDER BY clause reflects the
chronological order of insertion? If yes, Does this
this mean that if we don't need use to use SEQUENCES
if we just want to keep track the order of insertion
by chronological order? 
   Can we oid to keep track of the order of insertion
by chronological order?

2)Just for clarification. In the FAQ:
4.16.3) Don't currval() and nextval() lead to a race
condition with other users?
 No. This is handled by backends.

  So this means the sequences doesn't affect speed of
insertion. Is this correct?

Thank you very much,


Do You Yahoo!?
Yahoo! Health - Feel better, live better


pgsql-novice by date

Next:From: Bruno Wolff IIIDate: 2002-07-27 11:09:33
Subject: Re: some questions
Previous:From: Thiemo KellnerDate: 2002-07-27 01:46:30
Subject: Alter column

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group