Postgresql update table. If postgresql. if else postgresql. create function postgresql. if else postgresql пример.