Ok, so while we have a valid resource owner up to here, portal->resonwer is NULL. Could you 'up' until youre in this frame and then do 'print *portal'?
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных