Re: IS it a good practice to use SERIAL as Primary Key?

Поиск
Список
Период
Сортировка
От Joshua D. Drake
Тема Re: IS it a good practice to use SERIAL as Primary Key?
Дата
Msg-id 1164650053.16182.25.camel@localhost.localdomain
обсуждение исходный текст
Ответ на Re: IS it a good practice to use SERIAL as Primary Key?  (Scott Marlowe <smarlowe@g2switchworks.com>)
Список pgsql-general
On Mon, 2006-11-27 at 11:47 -0600, Scott Marlowe wrote:
> On Thu, 2006-11-23 at 10:23, Ron Johnson wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > On 11/22/06 20:23, carter ck wrote:
> > > Hi all,
> > >
> > > I am wonderring if it is a good practice to use SERIAL index as primary
> > > key, as it is only available up to 9999999?
> > >
> > > Currently i am dealing with storing LDAP users into Postgres and i am
> > > looking for a better way to make use of the DN as primary key instead of
> > > SERIAL index.'


Bigserial?

Joshua D. Drake


--

      === The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
Providing the most comprehensive  PostgreSQL solutions since 1997
             http://www.commandprompt.com/

Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate




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

Предыдущее
От: Scott Marlowe
Дата:
Сообщение: Re: Linux hard drive/device nodes for a Postgres RAID
Следующее
От: Jeff Davis
Дата:
Сообщение: Re: How to increace nightly backup speed