Azure / Azure/azure-postgresql

pg_restore dbname is missing in command call

Open
#69 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Bicep
Stars
87
Forks
81
PR merge metrics
No merged PRs in 30d

Description

When applying the `pg_restore` command, I kept getting an issue stating that the database name was not set. It seems that the following command was not doing anything:

`export PGDATABASE=$TARGET_DATABASE_NAME`

I updated the `pg_restore` call to the following which ended up fixing the issue:

`pg_restore -v --no-owner --host="$TARGET_SERVER_NAME.postgres.database.azure.com" --port=5432 --username="$TARGET_USERNAME@$TARGET_SERVER_NAME" --dbname=$TARGET_DATABASE_NAME "$SOURCE_DATABASE_NAME.dump"`

Is there any reason as to why this issue would come up?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.