Joe Conway <mail(at)joeconway(dot)com> writes:
> It would be interesting to step through a few times to see if it is
> really stuck in that loop.
Yeah, this single data point is not enough justification to blame
dynahash.c (which is *extremely* battle-tested code, you'll recall).
I'm inclined to guess that the looping is happening a few stack levels
further up, in the logical-decoding code (which is, um, not so much).
regards, tom lane