Skip to content

Commit dcb6f22

Browse files
[Postgresql] few minor updates
1 parent 36084a4 commit dcb6f22

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

articles/postgresql/flexible-server/how-to-use-pg-partman.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ In this article, you learn how to optimize the Azure Database for PostgreSQL Fle
1919

2020
## Prerequisites
2121

22-
To enable the pg_partman extension, follow these steps.
22+
To enable the `pg_partman` extension, follow these steps.
2323

24-
- Add the pg_partman extension under Azure extensions as shown by the server parameters on the portal.
24+
- Add the `pg_partman` extension under Azure extensions as shown by the server parameters on the portal.
2525

2626
:::image type="content" source="media/how-to-use-pg-partman/pg-partman-prerequisites.png" alt-text="Screenshot of prerequisites to get started.":::
2727

@@ -35,15 +35,15 @@ To enable the pg_partman extension, follow these steps.
3535
3636
You can use server parameters in the Azure portal to change the following configuration options that affect the BGW process: 
3737
38-
`pg_partman_bgw.dbname` - Required. This parameter should contain one or more databases that run_maintenance() needs to be run on. If more than one, use a comma separated list. If nothing is set, BGW doesn't run the procedure. 
38+
`pg_partman_bgw.dbname` - Required. This parameter should contain one or more databases that `run_maintenance()` needs to be run on. If more than one, use a comma separated list. If nothing is set, `pg_partman_bgw` doesn't run the procedure. 
3939

40-
`pg_partman_bgw.interval` - Number of seconds between calls to run_maintenance() procedure. Default is 3600 (1 hour). This can be updated based on the requirement of the project. 
40+
`pg_partman_bgw.interval` - Number of seconds between calls to `run_maintenance()` procedure. Default is 3600 (1 hour). This can be updated based on the requirement of the project. 
4141

42-
`pg_partman_bgw.role` - The role that run_maintenance() procedure runs as. Default is postgres. Only a single role name is allowed. 
42+
`pg_partman_bgw.role` - The role that `run_maintenance()` procedure runs as. Default is postgres. Only a single role name is allowed. 
4343

44-
`pg_partman_bgw.analyze` - By default, it's set to OFF. Same purpose as the p_analyze argument to run_maintenance(). 
44+
`pg_partman_bgw.analyze` - By default, it's set to OFF. Same purpose as the p_analyze argument to `run_maintenance()`
4545
46-
`pg_partman_bgw.jobmon` - Same purpose as the p_jobmon argument to run_maintenance(). By default, it's set to ON
46+
`pg_partman_bgw.jobmon` - Same purpose as the `p_jobmon` argument to `run_maintenance()`. By default, it's set to ON
4747

4848
> [!NOTE]
4949
> 1. When an identity feature uses sequences, the data from the parent table gets new sequence value. It doesn't generate new sequence values when the data is directly added to the child table. 
@@ -133,7 +133,7 @@ INSERT INTO partman.partition_test SELECT GENERATE_SERIES(400000,500000),GENERAT
133133
GENERATE_SERIES(400000,500000) || 'zyxwvutsrqponmlkjihgfedcba', GENERATE_SERIES (timestamp '2024-07-01',timestamp '2024-07-30', interval '1 day') ; 
134134
```
135135

136-
Run the command below to see the partitions created. 
136+
Run the command below on you psql to see the partitions created. 
137137

138138
```sql
139139
\d+ partman.partition_test;

0 commit comments

Comments
 (0)