There is no in built task for Azure Postgres in DevOps as far as I know.
You can post a question in a dedicated forum for Azure DevOps
https://developercommunity.visualstudio.com/spaces/21/index.html
Please don't forget to Accept Answer and Up-vote if the response helped -- Vaibhav