"Tegge, Bernd" <tegge(at)repas-aeg(dot)de> writes:
> It looks like QNX qsort does in fact call the comparison
> function to compare a tuple with itself (tuple pointers a and b have
> the same value).
Interesting. That would explain the failure during CREATE INDEX,
but we don't use qsort() while inserting into an existing index.
So I'm still wondering about Igor's report of a duplicate-key
failure in CREATE VIEW. Are you able to duplicate that?
regards, tom lane