You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/postgresql/extensions/how-to-load-libraries.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,13 +46,19 @@ Using the [Azure portal](https://portal.azure.com):
46
46
You can set `shared_preload_libraries` using the CLI [parameter set](/cli/azure/postgres/flexible-server/parameter#az-postgres-flexible-server-parameter-set) command.
47
47
48
48
```azurecli-interactive
49
-
az postgres flexible-server parameter set --resource-group <resource_group> --server-name <server> --name shared_preload_libraries --value <extension_name>,<extension_name>
49
+
az postgres flexible-server parameter set \
50
+
--resource-group <resource_group> \
51
+
--server-name <server> \
52
+
--name shared_preload_libraries \
53
+
--value <extension_name>,<extension_name>
50
54
```
51
55
52
56
And can restart the server using the CLI [parameter set](/cli/azure/postgres/flexible-server#az-postgres-flexible-server-restart) command.
53
57
54
58
```azurecli-interactive
55
-
az postgres flexible-server restart --resource-group <resource_group> --name <server>
Copy file name to clipboardExpand all lines: articles/postgresql/flexible-server/how-to-auto-grow-storage.md
+12-3Lines changed: 12 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,10 @@ Using the [Azure portal](https://portal.azure.com/):
55
55
You can enable storage autogrow in an existing server via the [az postgres flexible-server update](/cli/azure/postgres/flexible-server#az-postgres-flexible-server-update) command.
56
56
57
57
```azurecli-interactive
58
-
az postgres flexible-server update --resource-group <resource_group> --name <server> --storage-auto-grow enabled
58
+
az postgres flexible-server update \
59
+
--resource-group <resource_group> \
60
+
--name <server> \
61
+
--storage-auto-grow enabled
59
62
```
60
63
---
61
64
@@ -88,7 +91,10 @@ Using the [Azure portal](https://portal.azure.com/):
88
91
You can enable storage autogrow in an existing server via the [az postgres flexible-server update](/cli/azure/postgres/flexible-server#az-postgres-flexible-server-update) command.
89
92
90
93
```azurecli-interactive
91
-
az postgres flexible-server update --resource-group <resource_group> --name <server> --storage-auto-grow disabled
94
+
az postgres flexible-server update \
95
+
--resource-group <resource_group> \
96
+
--name <server> \
97
+
--storage-auto-grow disabled
92
98
```
93
99
94
100
---
@@ -112,7 +118,10 @@ Using the [Azure portal](https://portal.azure.com/):
112
118
You can enable storage autogrow while provisioning a new server via the [az postgres flexible-server create](/cli/azure/postgres/flexible-server#az-postgres-flexible-server-create) command.
Copy file name to clipboardExpand all lines: articles/postgresql/flexible-server/how-to-configure-high-availability.md
+49-11Lines changed: 49 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,19 +81,29 @@ You can enable high availability in an existing server via the [az postgres flex
81
81
To enable high availability so that standby server is deployed in the same zone as the primary server, use this command:
82
82
83
83
```azurecli-interactive
84
-
az postgres flexible-server update --resource-group <resource_group> --name <server> --high-availability SameZone
84
+
az postgres flexible-server update \
85
+
--resource-group <resource_group> \
86
+
--name <server> \
87
+
--high-availability SameZone
85
88
```
86
89
87
90
To enable high availability with standby server deployed in a different zone than the primary server, and if you want the zone to be automatically selected, use this command:
88
91
89
92
```azurecli-interactive
90
-
az postgres flexible-server update --resource-group <resource_group> --name <server> --high-availability ZoneRedundant
93
+
az postgres flexible-server update \
94
+
--resource-group <resource_group> \
95
+
--name <server> \
96
+
--high-availability ZoneRedundant
91
97
```
92
98
93
99
Also, optionally, you can select the availability zone in which the standby server should be deployed. To do so, use this command:
To deploy the primary server with a standby server in a different zone, explicitly specify the zone for the primary but let the service choose the zone for the standby, use this command:
To deploy the primary server with a standby server in a different zone, and explicitly specify the zone for the primary and the standby, use this command:
az postgres flexible-server index-tuning show-settings \
195
+
--resource-group <resource_group> \
196
+
--server-name <server> \
197
+
--name analyze_interval
187
198
```
188
199
189
200
The command returns all information about the server parameter corresponding to that setting of index tuning, and the output is similar to the following:
@@ -214,7 +225,9 @@ Also, you can show the list of all index tuning settings in an existing server v
214
225
To list all index tuning settings, use this command:
215
226
216
227
```azurecli-interactive
217
-
az postgres flexible-server index-tuning list-settings --resource-group <resource_group> --server-name <server>
228
+
az postgres flexible-server index-tuning list-settings \
229
+
--resource-group <resource_group> \
230
+
--server-name <server>
218
231
```
219
232
220
233
The command returns all server parameters that control the different settings of index tuning, and the output is similar to the following:
@@ -474,7 +487,11 @@ You can modify the value of a single index tuning setting in an existing server
474
487
For example, to set the value of the index tuning setting called `analyze_interval` to `1440`, use this command:
az postgres flexible-server index-tuning set-settings \
491
+
--resource-group <resource_group> \
492
+
--server-name <server> \
493
+
--name analyze_interval \
494
+
--value 1440
478
495
```
479
496
480
497
The command returns all information about the server parameter corresponding to that setting of index tuning, and the output is similar to the following:
0 commit comments