Select query order - Mailing list pgsql-novice

From Krithinarayanan Ganesh Kumar
Subject Select query order
Date
Msg-id 61940faf1003240506n5154f4fr81f7e9d983f6761d@mail.gmail.com
Whole thread Raw
Responses Re: Select query order  (Sean Davis <sdavis2@mail.nih.gov>)
Re: Select query order  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
List pgsql-novice
Hi All,

I am aware that Select query does not guarantee the order of the rows returned ( The rows are returned in whatever order the system finds fastest to produce).

Is there any way to SELECT the rows in the same order of insertion ? The problem is there is no Primary Key in the table, I am having only a composite key. So I cannot ORDER BY pk also.

I tried
row_number() over () Window function but not of use

Thanks & Regards
Krithi

pgsql-novice by date:

Previous
From: Ireneusz Pluta
Date:
Subject: Re: Calculating database sizes using a script
Next
From: Sean Davis
Date:
Subject: Re: Select query order