Re: Best database structure for timely ordered values - Mailing list pgsql-sql

From Bruce Momjian
Subject Re: Best database structure for timely ordered values
Date
Msg-id 200012181622.LAA26713@candle.pha.pa.us
Whole thread Raw
In response to Re: Best database structure for timely ordered values  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
> Reiner Dassing <dassing@wettzell.ifag.de> writes:
> > The primary index must be the epoch.
> > As there will be no deletion from this data I fear - due to the
> > internal representation of B-trees - the performance will degrade very
> > soon.
> 
> Nonsense.  btree should work just fine for that.  Use a timestamp
> column for the primary key, and away you go.
> 
> (Actually, time alone doesn't seem like it'd be necessarily unique,
> so maybe you don't want to call it a primary key.  But certainly
> you can make a non-unique index on that column.)

I assume the user is concerned about non-balanced btrees.  Ours are
auto-balancing.


--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-sql by date:

Previous
From: Alessio Bragadini
Date:
Subject: Re: Confused by timezones
Next
From: Reiner Dassing
Date:
Subject: Re: Best database structure for timely ordered values