From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Reiner Dassing <dassing@wettzell.ifag.de>
Cc: pgsql-sql@postgresql.org
Subject: Re: Best database structure for timely ordered values
Date: Mon, 18 Dec 2000 11:22:20 -0500 (EST)
Message-ID: <200012181622.LAA26713@candle.pha.pa.us> (raw)
In-Reply-To: <18883.977151415@sss.pgh.pa.us>
> 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, Pennsylvania 19026
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: pgman@candle.pha.pa.us, tgl@sss.pgh.pa.us, dassing@wettzell.ifag.de
Subject: Re: Best database structure for timely ordered values
In-Reply-To: <200012181622.LAA26713@candle.pha.pa.us>
References: <18883.977151415@sss.pgh.pa.us> <200012181622.LAA26713@candle.pha.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox