okay, I think I nailed the assert part right. (3rd iteration, about time...). as usual: http://zlew.org/postgresql_static_check/scan-build-2009-08-30-2/ archive one dir up. the current patch attached.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных