Re: Random-looking primary keys in the range 100000..999999

Поиск
Список
Период
Сортировка
От Kynn Jones
Тема Re: Random-looking primary keys in the range 100000..999999
Дата
Msg-id CAFvQaj6xB82JE5YjfNRqj623eXiXTCnJUkwRWoFA7Yge6NhWrQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Random-looking primary keys in the range 100000..999999  (hubert depesz lubaczewski <depesz@gmail.com>)
Ответы Re: Random-looking primary keys in the range 100000..999999  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Fri, Jul 4, 2014 at 10:13 AM, hubert depesz lubaczewski <depesz@gmail.com> wrote:
How many rows do you plan on having in this table?

Currently, only around 10K, but there's expectation that the number will grow.  It's hard to predict how much, hence the generous extra space.
 
Why this particular key range?

The requirements I've been given for the keys is that they be numeric, reasonably easy to type (hence, no 40-digit keys), never beginning with 0, and carrying no additional information content (or even suggesting it).  Among the pieces of information that the key should not include is the relative time of entry into the DB (hence, the keys should be more or less evenly distributed over the 100K-1M range).

k

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pg_dump slower than pg_restore
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Random-looking primary keys in the range 100000..999999