Re: primary key

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Sandeep Joshi <sjoshi(at)Zambeel(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: primary key
Date: 2000-11-29 05:17:26
Message-ID: 26446.975475046@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Sandeep Joshi <sjoshi(at)Zambeel(dot)com> writes:
> When we specify "primary key" while creating a table, what kind of
> index is created?

btree.

btree is the default index type in all cases in Postgres. It's
considerably better tested than the other types, as well as better-
performing under concurrent access. That's not necessarily an
inherent property of btrees in general, but I think it's a safe
comment about the code that actually exists in Postgres...

regards, tom lane

In response to

  • primary key at 2000-11-29 04:56:50 from Sandeep Joshi

Browse pgsql-general by date

  From Date Subject
Next Message Tatsuo Ishii 2000-11-29 06:15:46 Re: Bug? 'psql -l' in pg_ctl?
Previous Message Tom Lane 2000-11-29 05:12:00 Re: Access restriction