Dear Alexander,
> FWIW, this issue is not reproduced at 7a485bd64~1, maybe this should be
> taken into account.
To confirm, are you saying that the issue cannot be reproduced before 7a485bd64
right? I think it's because try_relation_open() is used in pg_get_sequence_data().
Before the commit we forcibly open the relation and raise an ERROR if it fails.
The sequencesync worker exits and tries again - everything is OK.
After the commit, however, we allow to fail opening and the SQL function returns
NULL - this can cause the assertion failure.
Best regards,
Hayato Kuroda
FUJITSU LIMITED