Re: Primary Key Increment Doesn't Seem Correct Under Table Partition

Поиск
Список
Период
Сортировка
От Alban Hertroys
Тема Re: Primary Key Increment Doesn't Seem Correct Under Table Partition
Дата
Msg-id 1A8B962F-258F-41CE-837E-42FB9423F009@solfertje.student.utwente.nl
обсуждение исходный текст
Ответ на Re: Primary Key Increment Doesn't Seem Correct Under Table Partition  (Yan Cheng Cheok <yccheok@yahoo.com>)
Список pgsql-general
On 29 Jan 2010, at 1:56, Yan Cheng Cheok wrote:

> Isn't the primary constraint will implicitly create an index for day already?
>
> PRIMARY KEY (advertiser_id, day),


Yes, but it's not a very efficient index to look for values of day if you don't provide a value for advertiser_id as
well.See http://www.postgresql.org/docs/8.4/interactive/indexes-multicolumn.html 

Alban Hertroys

--
If you can't see the forest for the trees,
cut the trees and you'll see there is no forest.


!DSPAM:737,4b62d2e810751877882363!



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

Предыдущее
От: Adrian von Bidder
Дата:
Сообщение: Re: How to generate unique hash-type id?
Следующее
От: "Wappler, Robert"
Дата:
Сообщение: Re: How to generate unique hash-type id?