pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jaime Casanova <systemguards@gmail.com>
To: Richard Huxton <dev@archonet.com>
Cc: KÖPFERL Robert <robert.koepferl@sonorys.at>
Cc: dpandey@secf.com <dpandey@secf.com>
Cc: pgsql-general@postgresql.org, PostgreSQL <pgsql-sql@postgresql.org>
Subject: Re: [SQL] index row size 2728 exceeds btree maximum, 27
Date: Thu, 2 Jun 2005 10:48:21 -0500
Message-ID: <c2d9e70e0506020848667a6e28@mail.gmail.com> (raw)
In-Reply-To: <429EFE55.3050601@archonet.com>
References: <ED4E30DD9C43D5118DFB00508BBBA76EB16736@neptun.sonorys.at>
	<429EFE55.3050601@archonet.com>

On 6/2/05, Richard Huxton <dev@archonet.com> wrote:
> KÖPFERL Robert wrote:
> > To me it seems that the definer of this table missed the concept index ...
> > or the concept database
> > One usually looks up data using a key, but if the whole row is the key, what
> > data shall be looked up.
> 
> > So short story long: Remove data from your index.  The data column seems
> > like the data to be looked up using the key
> > (scan_id, host_ip, port_num, plugin_id, severity) or even less.
> > Postgres is able to take several indices over distinct columns into account.
> > Thus reducing the possible candidates to a hand full.
> > So several indices are also an option
> 
> Actually, Dinesh didn't mention he was using this for the speed of
> lookup. He'd defined the columns as being the PRIMARY KEY, presumably
> because he feels they are/should be unique. Given that they are rows
> from a logfile, I'm not convinced this is the case.
> 

If this a log he will need a timestamp field to be usefull, making
that field part of the primary key and letting the data out of the
primary has more sense to me.

-- 
regards,
Jaime Casanova
(DBA: DataBase Aniquilator ;)



view thread (18+ messages)  latest in thread

Message-ID: <c2d9e70e0506020848667a6e28@mail.gmail.com>
Permalink:  ../c2d9e70e0506020848667a6e28@mail.gmail.com/
Also on:    postgresql.org/message-id/c2d9e70e0506020848667a6e28@mail.gmail.com

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: systemguards@gmail.com, dev@archonet.com, robert.koepferl@sonorys.at, dpandey@secf.com
  Subject: Re: [SQL] index row size 2728 exceeds btree maximum, 27
  In-Reply-To: <c2d9e70e0506020848667a6e28@mail.gmail.com>

* 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