Re: Related To Hash Partition - Mailing list pgsql-admin

From Tom Lane
Subject Re: Related To Hash Partition
Date
Msg-id 3840294.1682262454@sss.pgh.pa.us
Whole thread Raw
In response to Related To Hash Partition  (ROHIT SACHDEVA <sachdeva.rohit648@gmail.com>)
Responses Re: Related To Hash Partition  (ROHIT SACHDEVA <sachdeva.rohit648@gmail.com>)
List 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 by date:

Previous
From: ROHIT SACHDEVA
Date:
Subject: Related To Hash Partition
Next
From: ROHIT SACHDEVA
Date:
Subject: Re: Related To Hash Partition