PostgreSQL PgAgent syntax error at or near DECLARE
Could someone tells me what is wrong please. I try to create a job with using PgAgent with declaring some variables. When I run this code manually, it works successfully. But when I try to put this code in job…