diff --git a/use-timescale/jobs/create-and-manage-jobs.md b/use-timescale/jobs/create-and-manage-jobs.md index 09d66a5911..9826c0fe81 100644 --- a/use-timescale/jobs/create-and-manage-jobs.md +++ b/use-timescale/jobs/create-and-manage-jobs.md @@ -29,12 +29,13 @@ To create a $JOB, create a [function][postgres-createfunction] or [procedure][po ```sql CREATE FUNCTION (required arguments) RETURNS AS $$ - DECLARE - ; - BEGIN - ; - RETURN { | value } - END; LANGUAGE ; + DECLARE + ; + BEGIN + ; + RETURN { | value } + END; + $$ LANGUAGE ; ``` For example, to create a function that returns the total row count of a table within a $SERVICE_SHORT: @@ -173,4 +174,4 @@ Alter an existing $JOB with [`alter_job`][api-alter_job]. You can change both th [api-timescaledb_information-jobs]: /api/:currentVersion:/informational-views/jobs/ [postgres-createfunction]: https://www.postgresql.org/docs/current/xfunc.html [postgres-createprocedure]: https://www.postgresql.org/docs/current/xproc.html -[plpgsql]: https://www.postgresql.org/docs/current/plpgsql-overview.html \ No newline at end of file +[plpgsql]: https://www.postgresql.org/docs/current/plpgsql-overview.html