One possible solution could be creating a cron job script to check the certificate in Caddy’s certificate folder and compare it with the one used by Postgres.
The script would compare their hashes, and if they differ, it would copy the new certificate from Caddy’s folder to Postgres’ folder, update the key/certificate file ownership, and reload the Postgres service.