| From: | Bruno Wolff III <bruno(at)wolff(dot)to> |
|---|---|
| To: | Sam Adams <samadams(at)myfastmail(dot)com> |
| Cc: | pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: Serial and Index |
| Date: | 2005-02-27 16:37:41 |
| Message-ID: | 20050227163741.GA1789@wolff.to |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
On Sun, Feb 27, 2005 at 12:54:52 +0000,
Sam Adams <samadams(at)myfastmail(dot)com> wrote:
> I read at http://jamesthornton.com/postgres/FAQ/faq-english.html#4.15.1
> that when a serial is created then an index is created on the column.
> However I can't seem to find this anywhere in the PoistgreSQL manual. Is
> this true? Thanks.
That was true with the first release that had the serial pseudo type.
That was changed in later versions to provide flexibility for DBAs.
In common use, a serial column is declared as the primary key and you
get a unique index created without any other special declarations.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2005-02-27 16:59:14 | Re: Serial and Index |
| Previous Message | Michael Fuhr | 2005-02-27 16:28:27 | Re: Serial and Index |