pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: hubert depesz lubaczewski <depesz@depesz.com>
To: Cédric Villemain <cedric.villemain.debian@gmail.com>
Cc: Divakar Singh <dpsmails@yahoo.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Insert performance with composite index
Date: Tue, 2 Nov 2010 10:45:39 +0100
Message-ID: <20101102094539.GA6686@depesz.com> (raw)
In-Reply-To: <AANLkTi=CSjxW9K67EP0SVu-_J1YM4eSPkHaziC_88YTP@mail.gmail.com>
References: <293254.80548.qm@web65413.mail.ac4.yahoo.com>
	<AANLkTi=CSjxW9K67EP0SVu-_J1YM4eSPkHaziC_88YTP@mail.gmail.com>

On Mon, Nov 01, 2010 at 02:57:56PM +0100, Cédric Villemain wrote:
> >   CONSTRAINT tableindex_pkey PRIMARY KEY (tableindex)
> > )
> > the index definition is
> > CREATE INDEX "PK_AT2"
> >   ON ABC
> >   USING btree
> >   (event, tableindex)
> > TABLESPACE sample;
> 
> Indexing twice the same column is useless. (perhaps move your PK to
> the tablespace 'sample' is good too ?)

why do you say that?
these are not the same indexes and they serve different purposes.

Best regards,

depesz

-- 
Linkedin: http://www.linkedin.com/in/depesz  /  blog: http://www.depesz.com/
jid/gtalk: depesz@depesz.com / aim:depeszhdl / skype:depesz_hdl / gg:6749007



view thread (16+ messages)  latest in thread

Message-ID: <20101102094539.GA6686@depesz.com>
Permalink:  ../20101102094539.GA6686@depesz.com/
Also on:    postgresql.org/message-id/20101102094539.GA6686@depesz.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-performance@postgresql.org
  Cc: depesz@depesz.com, cedric.villemain.debian@gmail.com, dpsmails@yahoo.com
  Subject: Re: Insert performance with composite index
  In-Reply-To: <20101102094539.GA6686@depesz.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