Skip to content

Commit 91b611c

Browse files
authored
Merge pull request #99147 from shriram-muthukrishnan/pg_dump_branch
Changed made to the pg_dump commands with the right parameters
2 parents 7181ff1 + ba4353d commit 91b611c

4 files changed

+8
-8
lines changed

articles/dms/tutorial-azure-postgresql-to-azure-postgresql-online-portal.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ To complete all the database objects like table schemas, indexes and stored proc
7171
1. Use pg_dump -s command to create a schema dump file for a database.
7272

7373
```
74-
pg_dump -o -h hostname -U db_username -d db_name -s > your_schema.sql
74+
pg_dump -O -h hostname -U db_username -d db_name -s > your_schema.sql
7575
```
7676
7777
For example, to create a schema dump file for the **dvdrental** database:
7878
7979
```
80-
pg_dump -o -h mypgserver-source.postgres.database.azure.com -U pguser@mypgserver-source -d dvdrental -s -O -x > dvdrentalSchema.sql
80+
pg_dump -O -h mypgserver-source.postgres.database.azure.com -U pguser@mypgserver-source -d dvdrental -s -x > dvdrentalSchema.sql
8181
```
8282
8383
For more information about using the pg_dump utility, see the examples in the [pg-dump](https://www.postgresql.org/docs/9.6/static/app-pgdump.html#PG-DUMP-EXAMPLES) tutorial.

articles/dms/tutorial-postgresql-azure-postgresql-online-portal.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ To complete all the database objects like table schemas, indexes and stored proc
7575
1. Use pg_dump -s command to create a schema dump file for a database.
7676

7777
```
78-
pg_dump -o -h hostname -U db_username -d db_name -s > your_schema.sql
78+
pg_dump -O -h hostname -U db_username -d db_name -s > your_schema.sql
7979
```
8080
8181
For example, to create a schema dump file for the **dvdrental** database:
8282
8383
```
84-
pg_dump -o -h localhost -U postgres -d dvdrental -s -O -x > dvdrentalSchema.sql
84+
pg_dump -O -h localhost -U postgres -d dvdrental -s -x > dvdrentalSchema.sql
8585
```
8686
8787
For more information about using the pg_dump utility, see the examples in the [pg-dump](https://www.postgresql.org/docs/9.6/static/app-pgdump.html#PG-DUMP-EXAMPLES) tutorial.

articles/dms/tutorial-postgresql-azure-postgresql-online.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ To complete all the database objects like table schemas, indexes and stored proc
8383
1. Use pg_dump -s command to create a schema dump file for a database.
8484

8585
```
86-
pg_dump -o -h hostname -U db_username -d db_name -s > your_schema.sql
86+
pg_dump -O -h hostname -U db_username -d db_name -s > your_schema.sql
8787
```
8888
8989
For example, to dump a schema file dvdrental database:
9090
```
91-
pg_dump -o -h localhost -U postgres -d dvdrental -s > dvdrentalSchema.sql
91+
pg_dump -O -h localhost -U postgres -d dvdrental -s > dvdrentalSchema.sql
9292
```
9393
9494
For more information about using the pg_dump utility, see the examples in the [pg-dump](https://www.postgresql.org/docs/9.6/static/app-pgdump.html#PG-DUMP-EXAMPLES) tutorial.

articles/dms/tutorial-rds-postgresql-server-azure-db-for-postgresql-online.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ To complete this tutorial, you need to:
7575
The easiest way to migrate only the schema is to use pg_dump with the -s option. For more information, see the [examples](https://www.postgresql.org/docs/9.6/app-pgdump.html#PG-DUMP-EXAMPLES) in the Postgres pg_dump tutorial.
7676

7777
```
78-
pg_dump -o -h hostname -U db_username -d db_name -s > your_schema.sql
78+
pg_dump -O -h hostname -U db_username -d db_name -s > your_schema.sql
7979
```
8080
8181
For example, to dump a schema file for the **dvdrental** database, use the following command:
8282
8383
```
84-
pg_dump -o -h localhost -U postgres -d dvdrental -s > dvdrentalSchema.sql
84+
pg_dump -O -h localhost -U postgres -d dvdrental -s > dvdrentalSchema.sql
8585
```
8686
8787
2. Create an empty database in the target service, which is Azure Database for PostgreSQL. To connect and create a database, refer to one of the following articles:

0 commit comments

Comments
 (0)