Postgresql if then. Postgresql функции. create function postgresql. returns table postgresql. функция return.