Stupid question on INDEXES

Поиск
Список
Период
Сортировка
От Giorgio Ponza
Тема Stupid question on INDEXES
Дата
Msg-id 002601c1888d$9ac2aba0$c801a8c0@opla.it
обсуждение исходный текст
Ответ на Re: Operation on bit strings with different length  ("Josh Berkus" <josh@agliodbs.com>)
Ответы Re: Stupid question on INDEXES  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice
I'd like to know if i think in the right way. With
CREATE TABLE Test1 (
my_id int,
descr text,
primary key (my_id))
Postgres automatically creates an index named test1_pkey.
If i use
CREATE TABLE Test1 (
my_id int,
descr text)
without specifying a pkey, i can write
create unique index i_test1_pkey on (my_id).
The only difference is that in the 2nd case i can use the name i want, or
the usage is different?

Many thanks

Giorgio



В списке pgsql-novice по дате отправления:

Предыдущее
От: "Josh Berkus"
Дата:
Сообщение: Re: Operation on bit strings with different length
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Stupid question on INDEXES