Skip to content

Commit 35f6869

Browse files
committed
Update concepts-extensions.md
1 parent 4df4128 commit 35f6869

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

articles/postgresql/flexible-server/concepts-extensions.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ There is a tradeoff between the query execution information pg_stat_statements p
439439
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.
440440
[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).
441441
## 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).
443443

444444
Using the [Azure portal](https://portal.azure.com/):
445445

@@ -520,6 +520,31 @@ Example:
520520
ORDER BY a.aid;
521521
```
522522
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+
523548
## Next steps
524549

525550
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

Comments
 (0)