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/flexible-server/concepts-extensions.md
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ az postgres flexible-server parameter set --resource-group <resource_group> --s
37
37
```
38
38
39
39
Using [ARM Template](../../azure-resource-manager/templates/index.yml):
40
-
Example shown below allowlists extensions `dblink`, `dict_xsyn`, `pg_buffercache` on a server whose name is `postgres-test-server`:
40
+
Following example allowlists extensions `dblink`, `dict_xsyn`, `pg_buffercache` on a server whose name is `postgres-test-server`:
41
41
42
42
```json
43
43
{
@@ -68,7 +68,7 @@ az postgres flexible-server parameter set --resource-group <resource_group> --s
68
68
}
69
69
```
70
70
71
-
`shared_preload_libraries` is a server configuration parameter that determines which libraries have to be loaded when Azure Database for PostgreSQL flexible server starts. Any libraries which use shared memory must be loaded via this parameter. If your extension needs to be added to shared preload libraries, follow these steps:
71
+
`shared_preload_libraries` is a server configuration parameter that determines which libraries have to be loaded when Azure Database for PostgreSQL flexible server starts. Any libraries that use shared memory must be loaded via this parameter. If your extension needs to be added to shared preload libraries, follow these steps:
72
72
73
73
Using the [Azure portal](https://portal.azure.com):
74
74
@@ -86,12 +86,12 @@ Using [Azure CLI](/cli/azure/):
86
86
az postgres flexible-server parameter set --resource-group <resource_group> --server-name <server> --subscription <subscription_id> --name shared_preload_libraries --value <extension_name>,<extension_name>
87
87
```
88
88
89
-
After extensions are allowlisted and loaded, these must be installed in each database on which you plan to use them. To install a particular extension, you should run the [CREATE EXTENSION](https://www.postgresql.org/docs/current/sql-createextension.html) command. This command loads the packaged objects into your database.
89
+
After extensions are allowlisted and loaded, they must be installed in each database on which you plan to use them. To install a particular extension, you should run the [CREATE EXTENSION](https://www.postgresql.org/docs/current/sql-createextension.html) command. This command loads the packaged objects into your database.
90
90
91
91
> [!NOTE]
92
92
> Third party extensions offered in Azure Database for PostgreSQL flexible server are open source licensed code. Currently, we don't offer any third party extensions or extension versions with premium or proprietary licensing models.
93
93
94
-
Azure Database for PostgreSQL flexible server instance supports a subset of key PostgreSQL extensions as listed below. This information is also available by running `SHOW azure.extensions;`. Extensions not listed in this document aren't supported on Azure Database for PostgreSQL flexible server. You can't create or load your own extension in Azure Database for PostgreSQL flexible server.
94
+
Azure Database for PostgreSQL flexible server instance supports a subset of key PostgreSQL extensions as listed in the following table. This information is also available by running `SHOW azure.extensions;`. Extensions not listed in this document aren't supported on Azure Database for PostgreSQL flexible server. You can't create or load your own extension in Azure Database for PostgreSQL flexible server.
95
95
96
96
## Extension versions
97
97
@@ -115,7 +115,7 @@ This command simplifies the management of database extensions by allowing users
115
115
116
116
### Limitations
117
117
While updating extensions is straightforward, there are certain limitations:
118
-
-**Selection of a specific version**: The command does not support updating to intermediate versions of an extension. It will always update to the [latest available version](#extension-versions).
118
+
-**Selection of a specific version**: The command does not support updating to intermediate versions of an extension. It always updates to the [latest available version](#extension-versions).
119
119
-**Downgrading**: Does not support downgrading an extension to a previous version. If a downgrade is necessary, it might require support assistance and depends on the availability of previous version.
120
120
121
121
#### Installed extensions
@@ -135,7 +135,7 @@ SELECT * FROM pg_available_extensions WHERE name = 'azure_ai';
135
135
These commands provide necessary insights into the extension configurations of your database, helping maintain your systems efficiently and securely. By enabling easy updates to the latest extension versions, Azure Database for PostgreSQL continues to support the robust, secure, and efficient management of your database applications.
136
136
137
137
## Considerations specific to Azure Database for PostgreSQL flexible server
138
-
Following is a list of supported extensions which require some specific considerations when used in the Azure Database for PostgreSQL flexible server service. The list is alphabetically sorted.
138
+
Following is a list of supported extensions that require some specific considerations when used in the Azure Database for PostgreSQL flexible server service. The list is alphabetically sorted.
139
139
140
140
### dblink
141
141
@@ -147,7 +147,7 @@ We recommend deploying your servers with [virtual network integration](concepts-
147
147
148
148
`pg_buffercache` can be used to study the contents of *shared_buffers*. Using [this extension](https://www.postgresql.org/docs/current/pgbuffercache.html) you can tell if a particular relation is cached or not (in `shared_buffers`). This extension can help you troubleshooting performance issues (caching related performance issues).
149
149
150
-
This is part of contrib, and it's easy to install this extension.
150
+
This extension is integrated with core installation of PostgreSQL, and it's easy to install.
[pg_cron](https://github.com/citusdata/pg_cron/) is a simple, cron-based job scheduler for PostgreSQL that runs inside the database as an extension. The `pg_cron` extension can be used to run scheduled maintenance tasks within a PostgreSQL database. For example, you can run periodic vacuum of a table or removing old data jobs.
159
159
160
-
`pg_cron` can run multiple jobs in parallel, but it runs at most one instance of a job at a time. If a second run is supposed to start before the first one finishes, then the second run is queued and started as soon as the first run completes. This ensures that jobs run exactly as many times as scheduled and don't run concurrently with themselves.
160
+
`pg_cron` can run multiple jobs in parallel, but it runs at most one instance of a job at a time. If a second run is supposed to start before the first one finishes, then the second run is queued and started as soon as the first run completes. In such way, it is ensured that jobs run exactly as many times as scheduled and don't run concurrently with themselves.
161
161
162
162
Some examples:
163
163
@@ -236,9 +236,9 @@ Using the [Azure portal](https://portal.azure.com):
236
236
1. From the resource menu, under **Settings** section, select **Server parameters**.
237
237
1. Search for the `shared_preload_libraries` parameter and edit its value to include `pg_failover_slots`.
238
238
1. Search for the `hot_standby_feedback` parameter and set its value to `on`.
239
-
1. Select on **Save** to preserve your changes. Now, you'll have the option to **Save and restart**. Choose this to ensure that the changes take effect, since modifying `shared_preload_libraries` requires a server restart.
239
+
1. Select on **Save** to preserve your changes. Now, you have the option to **Save and restart**. Choose this to ensure that the changes take effect, since modifying `shared_preload_libraries` requires a server restart.
240
240
241
-
By selecting **Save and restart**, your server will automatically reboot, applying the changes you've made. Once the server is back online, the PG Failover Slots extension is enabled and operational on your primary Azure Database for PostgreSQL flexible server instance, ready to handle logical replication slots during failovers.
241
+
By selecting **Save and restart**, your server automatically reboots, applying the changes just made. Once the server is back online, the PG Failover Slots extension is enabled and operational on your primary Azure Database for PostgreSQL flexible server instance, ready to handle logical replication slots during failovers.
242
242
243
243
### pg_hint_plan
244
244
@@ -261,16 +261,16 @@ Example:
261
261
JOIN pgbench_accounts an ONb.bid=a.bid
262
262
ORDER BYa.aid;
263
263
```
264
-
The above example causes the planner to use the results of a `seq scan` on the table a to be combined with table b as a `hash join`.
264
+
The previous example causes the planner to use the results of a `seq scan` on the table a to be combined with table b as a `hash join`.
265
265
266
-
To install pg_hint_plan, in addition, to allow listing it, as shown [above](#how-to-use-postgresql-extensions), you need to include it in the server's shared preload libraries. A change to Postgres's `shared_preload_libraries` parameter requires a **server restart** to take effect. You can change parameters using the [Azure portal](how-to-configure-server-parameters-using-portal.md) or the [Azure CLI](how-to-configure-server-parameters-using-cli.md).
266
+
To install pg_hint_plan, in addition, to allow listing it, as shown in [how to use PostgreSQL extensions](#how-to-use-postgresql-extensions), you need to include it in the server's shared preload libraries. A change to Postgres's `shared_preload_libraries` parameter requires a **server restart** to take effect. You can change parameters using the [Azure portal](how-to-configure-server-parameters-using-portal.md) or the [Azure CLI](how-to-configure-server-parameters-using-cli.md).
267
267
268
268
Using the [Azure portal](https://portal.azure.com):
269
269
270
270
1. Select your Azure Database for PostgreSQL flexible server instance.
271
271
1. From the resource menu, under **Settings** section, select **Server parameters**.
272
272
1. Search for the `shared_preload_libraries` parameter and edit its value to include `pg_hint_plan`.
273
-
1. Select on **Save** to preserve your changes. Now, you'll have the option to **Save and restart**. Choose this to ensure that the changes take effect, since modifying `shared_preload_libraries` requires a server restart.
273
+
1. Select on **Save** to preserve your changes. Now, you have the option to **Save and restart**. Choose this to ensure that the changes take effect, since modifying `shared_preload_libraries` requires a server restart.
274
274
You can now enable pg_hint_plan your Azure Database for PostgreSQL flexible server database. Connect to the database and issue the following command:
275
275
276
276
```sql
@@ -291,7 +291,7 @@ The answer to that is that it is actually both. [pg_repack/lib](https://github.c
291
291
292
292
As of now, because of the way in which we grant permissions to the repack schema created by this extension, it is only supported to run pg_repack functionality from the context of `azure_pg_admin`.
293
293
294
-
You may notice that if the owner of a tabletries to run pg_repack, they will end up receiving an error like the following:
294
+
You may notice that if the owner of a table, who is not `azure_pg_admin`, tries to run pg_repack, they end up receiving an error like the following:
295
295
296
296
```
297
297
NOTICE: Setting up workers.conns
@@ -332,7 +332,7 @@ Using the [Azure portal](https://portal.azure.com):
332
332
1. Select your Azure Database for PostgreSQL flexible server instance.
333
333
1. From the resource menu, under **Settings** section, select **Server parameters**.
334
334
1. Search for the `shared_preload_libraries` parameter and edit its value to include `TimescaleDB`.
335
-
1. Select on **Save** to preserve your changes. Now, you'll have the option to **Save and restart**. Choose this to ensure that the changes take effect, since modifying `shared_preload_libraries` requires a server restart.
335
+
1. Select on **Save** to preserve your changes. Now, you have the option to **Save and restart**. Choose this to ensure that the changes take effect, since modifying `shared_preload_libraries` requires a server restart.
336
336
You can now enable TimescaleDB in your Azure Database for PostgreSQL flexible server database. Connect to the database and issue the following command:
337
337
338
338
```sql
@@ -350,7 +350,7 @@ To restore a Timescale database using pg_dump and pg_restore, you must run two h
350
350
First, prepare the destination database:
351
351
352
352
```SQL
353
-
--create the new database where you'll perform the restore
353
+
--create the new database where you want to perform the restore
0 commit comments