I apologize, I posted bad example without ELSEIF and NOT FOUND. Thanks for your advice, it looks like what I need. Kamler Jaromir
pgsql-novice by date:
Соглашаюсь с условиями обработки персональных данных