Re: Questions about indexes

From: DaVinci <bombadil(at)wanadoo(dot)es>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Questions about indexes
Date: 2001-05-09 09:10:41
Message-ID: 20010509111041.A1574@fangorn.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, May 09, 2001 at 10:31:27AM +0200, Renaud Thonnart wrote:

> Does PostgreSQL create an index when a table is created?

Yes, with PK.

> Does it create index even if there is no PK for this table?

No.

> I know that indexes increase performance for SELECT but it is the
> contrary when INSERT because the index must be actualised every time,
> isn't it?

Yes.

> How can I see all the index that PostgreSQL have implicitly create?

You can, from psql, do:

# \d table_name

This order shows all info about a table, including existing indexes.

> How can I delete them in keeping integrity in the database?

drop index?...

Greets.

David

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Renaud Thonnart 2001-05-09 09:13:39 Re: Questions about indexes
Previous Message Gary 2001-05-09 08:58:10 Postgresql newbie username/password question