Re: Related To Hash Partition

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Related To Hash Partition
Дата
Msg-id 3840294.1682262454@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Related To Hash Partition  (ROHIT SACHDEVA <sachdeva.rohit648@gmail.com>)
Ответы Re: Related To Hash Partition  (ROHIT SACHDEVA <sachdeva.rohit648@gmail.com>)
Список pgsql-admin
ROHIT SACHDEVA <sachdeva.rohit648@gmail.com> writes:
> While using hash partition i am facing the problem that the data is not
> going into the proper partition table .

Define "proper".  It's generally best to assume that the hash function
is a black box --- if you assume you know which partition a given key
value will be mapped to, you are doing something very fragile, and people
will have no sympathy for you when it breaks.

If you want a predictable mapping, use list or range partitioning,
not hash.

            regards, tom lane



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

Предыдущее
От: ROHIT SACHDEVA
Дата:
Сообщение: Related To Hash Partition
Следующее
От: ROHIT SACHDEVA
Дата:
Сообщение: Re: Related To Hash Partition