Rajesh Kumar Mallah <[EMAIL PROTECTED]> writes: > Yep the problem of original posting could be replicated on > disabling hash aggregates. On disabling i could get the repeated rows.
Okay. What I suspect is happening is that there are entries in the column that are equal according to the datatype's comparison function, but are not bitwise equal and therefore yield different hash codes. This makes it a crapshoot whether they are seen to be equal or not when hash aggregation is used. We identified a similar bug in the inet/cidr datatypes just a few weeks ago. What exactly is the datatype of the "name" column? If it's a text type, what database encoding and locale settings (LC_COLLATE/LC_CTYPE) are you using? Can you investigate exactly what's stored within each of these groups of matching names? regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 7: don't forget to increase your free space map settings