Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> The remaining question for me is, how do we sleep until the correct
> offset has been stored?
I was thinking of just pg_usleep for some nominal time (1ms maybe)
and try to read the offsets page again. This is a corner case so
the performance doesn't have to be great.
regards, tom lane