-
Notifications
You must be signed in to change notification settings - Fork 38
Backport for Update Quick Start Guide Percona Postgresql (16) #956
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Andriciuc
wants to merge
3
commits into
16
Choose a base branch
from
backport-update-quick-start-guide(16)
base: 16
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,119 @@ | ||
| # Quickstart guide | ||
|
|
||
| This guide shows how to install and start Percona Distribution for PostgreSQL on Debian- and RHEL-based Linux systems. After completing this guide, you will have: | ||
|
|
||
| - PostgreSQL running locally | ||
| - A database named `test` | ||
| - A table named `customers` | ||
| - One inserted row you can query | ||
|
|
||
| ## Fast path (2-minute install) | ||
|
|
||
| ```{.bash data-prompt="$"} | ||
| wget https://repo.percona.com/apt/percona-release_latest.$(lsb_release -sc)_all.deb | ||
| sudo dpkg -i percona-release_latest.$(lsb_release -sc)_all.deb | ||
| sudo percona-release setup ppg-{{pgversion}} | ||
| sudo apt install percona-postgresql-{{pgversion}} | ||
| sudo -i -u postgres psql | ||
| ``` | ||
|
|
||
| After psql starts, run the following SQL commands: | ||
|
|
||
| ```sql | ||
| CREATE DATABASE test; | ||
| \c test | ||
| CREATE TABLE customers (first_name VARCHAR(50), last_name VARCHAR(50), email VARCHAR(100)); | ||
| INSERT INTO customers VALUES ('John','Doe','john.doe@example.com'); | ||
| SELECT * FROM customers; | ||
| \q | ||
| ``` | ||
|
|
||
| For a step-by-step explanation, continue below. | ||
|
|
||
| ## Install on Debian / Ubuntu (APT) {.power-number} | ||
|
|
||
| 1. Fetch the `percona-release` package: | ||
|
|
||
| ```{.bash data-prompt="$"} | ||
| wget https://repo.percona.com/apt/percona-release_latest.$(lsb_release -sc)_all.deb | ||
| sudo dpkg -i percona-release_latest.$(lsb_release -sc)_all.deb | ||
| ``` | ||
|
|
||
| 2. Enable the repository and install the package: | ||
|
|
||
| ```{.bash data-prompt="$"} | ||
| sudo percona-release setup ppg-{{pgversion}} | ||
| sudo apt install percona-postgresql-{{pgversion}} | ||
| ``` | ||
|
|
||
| The installation process automatically initializes and starts the default database. | ||
|
|
||
| !!! note | ||
| On Debian and Ubuntu systems, the `postgresql` service may show as `active (exited)`. This is expected. | ||
|
|
||
| 3. Switch to the `postgres` user and open the psql interactive terminal: | ||
|
|
||
| ```{.bash data-prompt="$"} | ||
| sudo -i -u postgres | ||
| psql | ||
| ``` | ||
|
|
||
| 4. Create a database and make a table in the database: | ||
|
|
||
| ```sql | ||
| CREATE DATABASE test; | ||
| \c test | ||
| CREATE TABLE customers (first_name VARCHAR(50), last_name VARCHAR(50), email VARCHAR(100)); | ||
| ``` | ||
|
|
||
| 5. Insert data in the customers table and query the data insertion: | ||
|
|
||
| ```sql | ||
| INSERT INTO customers (first_name, last_name, email) VALUES ('John', 'Doe', 'john.doe@example.com'); | ||
| SELECT * FROM customers; | ||
| \q | ||
| ``` | ||
|
|
||
| Congratulations! Percona Distribution for PostgreSQL is now running and you have created your first database. | ||
|
|
||
| For detailed installation steps and further instructions on Debian and Ubuntu, see the [Install Percona Distribution for PostgreSQL on Debian and Ubuntu](apt.md). | ||
|
|
||
| For detailed installation steps and further instructions on Red Hat Enterprise Linux and derivatives, see the [Install Percona Distribution for PostgreSQL on Red Hat Enterprise Linux and derivatives](yum.md). | ||
|
|
||
| ## What's next | ||
|
|
||
| Now that your PostgreSQL server is running, you can explore additional capabilities of Percona Distribution for PostgreSQL. | ||
|
|
||
| <div data-grid markdown><div data-banner markdown> | ||
|
|
||
| ### Learn PostgreSQL basics { .title } | ||
|
|
||
| Connect with `psql` and run SQL commands, manage users, roles, and configure authentication. | ||
|
|
||
| [Manipulate data in PostgreSQL :material-arrow-right:](crud.md){ .md-button } | ||
|
|
||
| </div><div data-banner markdown> | ||
|
|
||
| ### Enable extensions { .title } | ||
|
|
||
| Percona Distribution for PostgreSQL includes tested open source extensions, such as `pg_stat_monitor` for query performance monitoring, `pg_tde` for protecting data at rest and more. | ||
|
|
||
| [See Extensions :material-arrow-right:](extensions.md){ .md-button } | ||
|
|
||
| </div><div data-banner markdown> | ||
|
|
||
| ### Configure backups { .title } | ||
|
|
||
| For production deployments we recommend configuring backups. | ||
|
|
||
| [See Backup and disaster recovery in Percona :material-arrow-right:](solutions/backup-recovery.md){.md-button} | ||
| </div><div data-banner markdown> | ||
|
|
||
| ### Configure high availability with Patroni { .title } | ||
|
|
||
| Deploy a highly available PostgreSQL cluster using Patroni to prevent service interruptions. | ||
|
|
||
| [See High Availability in PostgreSQL :material-arrow-right:](solutions/high-availability.md){.md-button} | ||
|
|
||
| </div> | ||
| </div> |
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
this should be installing.md, as this otherwise leads to a broken nav link