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/concepts-extensions.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ author: rachel-msft
5
5
ms.author: raagyema
6
6
ms.service: postgresql
7
7
ms.topic: conceptual
8
-
ms.date: 08/23/2019
8
+
ms.date: 09/10/2019
9
9
---
10
10
# PostgreSQL extensions in Azure Database for PostgreSQL - Single Server
11
11
PostgreSQL provides the ability to extend the functionality of your database using extensions. Extensions bundle multiple related SQL objects together in a single package that can be loaded or removed from your database with a single command. After being loaded in the database, extensions function like built-in features.
@@ -38,6 +38,7 @@ The following extensions are available in Azure Database for PostgreSQL servers
38
38
> |[isn](https://www.postgresql.org/docs/11/isn.html)| 1.2 | data types for international product numbering standards|
39
39
> |[ltree](https://www.postgresql.org/docs/11/ltree.html)| 1.1 | data type for hierarchical tree-like structures|
40
40
> |[orafce](https://github.com/orafce/orafce)| 3.7 | Functions and operators that emulate a subset of functions and packages from commercial RDBMS|
> |[pgrowlocks](https://www.postgresql.org/docs/9.5/pgrowlocks.html)| 1.1 | show row-level locking information|
@@ -207,6 +211,9 @@ Currently, outbound connections from Azure Database for PostgreSQL are not suppo
207
211
If you are planning to use `uuid_generate_v4()` from the uuid-ossp extension, consider comparing with `gen_random_uuid()` from the pgcrypto extension for performance benefits.
208
212
209
213
214
+
## pgAudit
215
+
The pgAudit extension provides session and object audit logging. To learn how to use this extension in Azure Database for PostgreSQL, visit the [auditing concepts article](concepts-audit-logs.md).
216
+
210
217
## TimescaleDB
211
218
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.
title: Configure audit logging using the Azure portal in Azure Database for PostgreSQL - Single Server
3
+
description: How to configure and access pgAudit audit logs using the Azure portal in Azure Database for PostgreSQL - Single Server.
4
+
author: rachel-msft
5
+
ms.author: raagyema
6
+
ms.service: postgresql
7
+
ms.topic: conceptual
8
+
ms.date: 09/10/2019
9
+
---
10
+
11
+
# How to configure audit logging using the Azure portal in Azure Database for PostgreSQL - Single Server
12
+
13
+
Audit logging can cause a high volume of logs to be generated on your server. These logs are by default sent to server logs storage using standard Postgres logging. This storage space is auxiliary to your server and not charged as part of the server storage you provision. This storage space is capped at 1 GB.
14
+
15
+
If you want to use audit logging, we recommend that you turn off logging. Instead, you can direct the logs to Azure M
16
+
17
+
### Preload pgaudit files
18
+
Load the pgAudit extension into the shared preload files.
19
+
20
+
1. In the Azure portal, select your Azure Database for PostgreSQL server.
21
+
2. In the server's navigation bar, select **Server Parameters**.
22
+
3. Use the search bar to find the `shared_preload_libraries` parameter.
23
+
4. Select **pgaudit** in the drop down.
24
+
5.**Save** your change.
25
+
6.[Restart](howto-restart-server-portal.md) the server to apply this change. A restart is required because shared_preload_libraries is a static parameter.
26
+
27
+
### Install the extension on your Postgres server
28
+
Connect to your server (using a client like psql) and install the pgAudit extension with the following:
29
+
`CREATE EXTENSION pgaudit;`
30
+
31
+
>[!TIP]
32
+
> If you see an error, confirm that you restarted your server after adding pgaudit to shared_preload_libraries.
0 commit comments