-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3814 from EnterpriseDB/release/2023-03-17
Release: 2023-03-17
- Loading branch information
Showing
16 changed files
with
145 additions
and
317 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
93 changes: 93 additions & 0 deletions
93
product_docs/docs/pem/9/profiling_workloads/installing_sql_profiler.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
--- | ||
title: "Installing the SQL Profiler extension" | ||
navTitle: Installing SQL Profiler | ||
legacyRedirectsGenerated: | ||
# This list is generated by a script. If you need add entries, use the `legacyRedirects` key. | ||
- "/edb-docs/d/edb-postgres-enterprise-manager/user-guides/sql-profiler-configuration-guide/8.0/installing_the_sql_profiler_plugin.html" | ||
redirects: | ||
- /pem/latest/pem_sqlprofiler/01_installing_the_sql_profiler_plugin/ | ||
- /pem/latest/profiling_workloads/pem_sqlprofiler/installing_the_sql_profiler_plugin/ | ||
--- | ||
|
||
You must install and enable the SQL Profiler extension on each server on which you want to use it. For example, if you have a host running PostgreSQL 14 and PostgreSQL 15, you must enable the extension on each server. | ||
|
||
SQL Profiler is supported on the same platforms as the Postgres distribution you're using. Support for the SQL Profiler extension starts with version 11 for PostgreSQL and EDB Postgres Advanced Server and version 12 for EDB Postgres Extended. See: | ||
- [EDB Postgres Advanced Server Product Compatibility](https://www.enterprisedb.com/platform-compatibility#epas) | ||
|
||
- [PostgreSQL Product Compatibility](https://www.enterprisedb.com/resources/platform-compatibility#pg) | ||
- [EDB Postgres Extended Server Product Compatibility](https://www.enterprisedb.com/resources/platform-compatibility#epas_extended) | ||
|
||
## Installing the package | ||
|
||
### Prerequisites | ||
|
||
Before you begin the installation process: | ||
|
||
- Install Postgres. See: | ||
- [Installing EDB Postgres Advanced Server](/epas/latest/installing/) | ||
|
||
- [Installing PostgreSQL](https://www.postgresql.org/download/) | ||
|
||
- [Installing EDB Postgres Extended Server](/pge/latest/installing/) | ||
|
||
- Set up the repository. | ||
|
||
Setting up the repository is a one-time task. If you have already set up your repository, you don't need to perform this step. | ||
|
||
To set up the repository, go to [EDB repositories](https://www.enterprisedb.com/repos-downloads) and follow the instructions provided there. | ||
|
||
|
||
### Install the package | ||
|
||
The syntax for the install command is: | ||
|
||
```shell | ||
sudo <package-manager> -y install sqlprofiler_<major_version> | ||
``` | ||
|
||
Where: | ||
|
||
- `<package-manager>`is the package manager used with your operating system: | ||
|
||
| Package manager | Operating system | | ||
| --------------- | -------------------------------- | | ||
| dnf | RHEL 8 and derivatives | | ||
| yum | RHEL 7 and derivatives, CentOS 7 | | ||
| zypper | SLES | | ||
| apt-get | Debian and derivatives | | ||
|
||
- `<major_version>` is the major version of Postgres you're using. | ||
|
||
For example, to install SQL Profiler version 4.0-1 on a RHEL 8 platform: | ||
|
||
```shell | ||
sudo dnf -y install sqlprofiler_15 | ||
``` | ||
|
||
|
||
## Enabling the extension | ||
|
||
|
||
To enable the extension: | ||
|
||
1. Edit the `postgresql.conf` file on the server you want to profile, modifying the `shared_preload_libraries` parameter: | ||
|
||
```ini | ||
shared_preload_libraries = '$libdir/sql_profiler' | ||
``` | ||
|
||
2. Restart the Postgres server. | ||
|
||
1. Create the SQL Profiler extension in your database with the following command: | ||
|
||
```sql | ||
CREATE EXTENSION sql_profiler; | ||
``` | ||
|
||
!!! Note | ||
If you are connected to the PEM server with the PEM client before configuring SQL Profiler, you must disconnect and reconnect with the server to enable SQL Profiler functionality. | ||
|
||
After enabling the extension, SQL Profiler is ready to use with all databases that reside on the server. | ||
|
||
|
||
|
24 changes: 0 additions & 24 deletions
24
product_docs/docs/pem/9/profiling_workloads/pem_sqlprofiler/index.mdx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
86b9940
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://edb-docs.netlify.app as production
🚀 Deployed on https://6414cc3197a24a2fa5ec142b--edb-docs.netlify.app
86b9940
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://edb-docs-staging.netlify.app as production
🚀 Deployed on https://6414cf063a29ed31289ae276--edb-docs-staging.netlify.app