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
+26-1Lines changed: 26 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -439,7 +439,7 @@ There is a tradeoff between the query execution information pg_stat_statements p
439
439
TimescaleDB is a time-series database that is packaged as an extension for PostgreSQL. TimescaleDB provides time-oriented analytical functions, optimizations, and scales Postgres for time-series workloads.
440
440
[Learn more about TimescaleDB](https://docs.timescale.com/timescaledb/latest/), a registered trademark of Timescale, Inc.. Azure Database for PostgreSQL provides the TimescaleDB [Apache-2 edition](https://www.timescale.com/legal/licenses).
441
441
## Installing TimescaleDB
442
-
To install TimescaleDB, 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](howto-configure-server-parameters-using-portal.md) or the [Azure CLI](howto-configure-server-parameters-using-cli.md).
442
+
To install TimescaleDB, 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](howto-configure-server-parameters-using-portal.md) or the [Azure CLI](howto-configure-server-parameters-using-cli.md).
443
443
444
444
Using the [Azure portal](https://portal.azure.com/):
445
445
@@ -520,6 +520,31 @@ Example:
520
520
ORDER BYa.aid;
521
521
```
522
522
The above example will cause the planner to use the results of a `seq scan` on table a to be combined with table b as a `hash join`.
523
+
524
+
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](howto-configure-server-parameters-using-portal.md) or the [Azure CLI](howto-configure-server-parameters-using-cli.md).
525
+
526
+
Using the [Azure portal](https://portal.azure.com/):
527
+
528
+
1. Select your Azure Database for PostgreSQL server.
529
+
530
+
2. On the sidebar, select **Server Parameters**.
531
+
532
+
3. Search for the `shared_preload_libraries` parameter.
533
+
534
+
4. Select **pg_hint_plan**.
535
+
536
+
5. Select **Save** to preserve your changes. You get a notification once the change is saved.
537
+
538
+
6. After the notification, **restart** the server to apply these changes.
539
+
540
+
541
+
You can now enable TimescaleDB in your Postgres database. Connect to the database and issue the following command:
542
+
```sql
543
+
CREATE EXTENSION IF NOT EXISTS pg_hint_plan CASCADE;
544
+
```
545
+
> [!TIP]
546
+
> If you see an error, confirm that you [restarted your server](how-to-restart-server-portal.md) after saving shared_preload_libraries.
547
+
523
548
## Next steps
524
549
525
550
If you don't see an extension that you'd like to use, let us know. Vote for existing requests or create new feedback requests in our [feedback forum](https://feedback.azure.com/d365community/forum/c5e32b97-ee24-ec11-b6e6-000d3a4f0da0).
0 commit comments