Thread: Re: PostgreSQL Storage: Sorted by Primary Key?

Re: PostgreSQL Storage: Sorted by Primary Key?

From
Christopher Browne
Date:
After takin a swig o' Arrakan spice grog, michi <mutsuzaki@gmail.com> belched out:
> Does PostgreSQL store records sorted by primary key?

No.  It initially stores tuples based on the order in which they are
inserted.

Behaviour changes later when a table has free space due to deleted
tuples.
--
let name="cbbrowne" and tld="gmail.com" in name ^ "@" ^ tld;;
http://cbbrowne.com/info/emacs.html
"Who is General Failure and why is he reading my hard disk?"
-- <leitner@inf.fu-berlin.de>, Felix von Leitner