Just to provide my opinion, since we are at intersection and can go either way on this. Second approach (just adding assert) only helps if the code path for ALL future callers gets excersied and test exist for thesame, to expose potential breakage. But with first approach fixes the issuefor current and future users, plus excersicing the same just with a single testalready tests it for future callers as well. So, that way first approach soundsmore promising if we are fetch between the two.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных