Hi Michiteru Sugitani •,
Welcome to Microsoft Q&A forum.
As I understand, you are getting Fatal error of SSL connection in pg_dump.
On Azure Database for PostgreSQL servers, TLS/SSL connections are on by default. If your PostgreSQL server requires TLS/SSL connections, but doesn't have them, set an environment variable PGSSLMODE=require
so that the pg_restore tool connects with TLS. Without TLS, the error might read: "FATAL: SSL connection is required. Please specify SSL options and retry." In the Windows command line, run the command SET PGSSLMODE=require
before running the pg_restore
command. In Linux or Bash, run the command export PGSSLMODE=require
before running the pg_restore
command.
Please try with above command and let us know if this helped.
Thanks