Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ Part of the solution, Percona Operator for PostgreSQL, makes it easy to orchestr

<div data-grid markdown><div data-banner markdown>

### :material-progress-download: Installation guides { .title }
### :material-progress-download: Quickstart guide { .title }

Get started quickly with the step-by-step installation instructions.
Get started quickly with these step-by-step installation instructions.

[Quickstart guides :material-arrow-right:](installing.md){ .md-button }
[Quickstart guide :material-arrow-right:](quick-start.md){ .md-button }

</div><div data-banner markdown>

Expand Down
27 changes: 13 additions & 14 deletions docs/installing.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
# Quickstart guide
# Installation overview

Percona Distribution for PostgreSQL is the Percona server for PostgreSQL with the collection of tools from PostgreSQL community that are tested to work together and serve to assist you in deploying and managing PostgreSQL. [Read more](index.md).
Percona Distribution for PostgreSQL packages PostgreSQL together with a curated set of open source extensions and tools that are tested to work together reliably.

This document aims to guide database application developers and DevOps engineers in getting started with Percona Distribution for PostgreSQL. Upon completion of this guide, you’ll have Percona Distribution for PostgreSQL installed and operational, and you’ll be able to:
This section explains how to install Percona Distribution for PostgreSQL on supported platforms.

* Connect to PostgreSQL using the `psql` interactive terminal
* Interact with PostgreSQL with basic psql commands
* Manipulate data in PostgreSQL
* Understand the next steps you can take as a database application developer or administrator to expand your knowledge of Percona Distribution for PostgreSQL
Choose the installation method that best fits your environment:

## Install Percona Distribution for PostgreSQL

You can select from multiple easy-to-follow installation options, however **we strongly recommend using a Package Manager** for a convenient and quick way to try the software first.
- Package manager, **recommended** for most Linux systems
- Docker, for quick evaluations or development
- Kubernetes, for production Kubernetes environments
- Tarballs, manual installation for custom environments (**not recommended** for mission-critical environments)

=== ":octicons-terminal-16: Package manager"

Percona provides installation packages in `DEB` and `RPM` format for 64-bit Linux distributions. Find the full list of supported platforms and versions on the [Percona Software and Platform Lifecycle page :octicons-link-external-16:](https://www.percona.com/services/policies/percona-software-support-lifecycle#pgsql).
Percona provides installation packages in `DEB` and `RPM` format for 64-bit Linux distributions. See the [Percona Software and Platform Lifecycle page :octicons-link-external-16:](https://www.percona.com/services/policies/percona-software-support-lifecycle#pgsql) for the full list of supported platforms and versions.

If you are on Debian or Ubuntu, use `apt` for installation.

Expand All @@ -26,15 +24,15 @@ You can select from multiple easy-to-follow installation options, however **we s

=== ":simple-docker: Docker"

Get our image from Docker Hub and spin up a cluster on a Docker container for quick evaluation.
Run Percona Distribution for PostgreSQL in a Docker container for quick evaluation or development.

Check below to get access to a detailed step-by-step guide.

[Run in Docker :material-arrow-right:](docker.md){.md-button}

=== ":simple-kubernetes: Kubernetes"

**Percona Operator for Kubernetes** is a controller introduced to simplify complex deployments that require meticulous and secure database expertise.
Use the Percona Operator for Kubernetes to deploy and manage PostgreSQL clusters on Kubernetes.

Check below to get access to a detailed step-by-step guide.

Expand All @@ -49,4 +47,5 @@ You can select from multiple easy-to-follow installation options, however **we s
!!! note

This method is **not recommended** for mission-critical environments.
[Install from tarballs :material-arrow-right:](tarball.md){.md-button}

[Install from tarballs :material-arrow-right:](tarball.md){.md-button}
2 changes: 1 addition & 1 deletion docs/postgresql-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ These enhancements serve as the foundation for Percona-authored extensions, such

For details about available extensions, see the [Percona-authored extensions topic](percona-ext.md).

For a broader overview of integrated tooling and deployment guidance, start with the [Percona Distribution for PostgreSQL Quickstart guide](installing.md).
For a broader overview of integrated tooling and deployment guidance, start with the [Percona Distribution for PostgreSQL Quickstart guide](quick-start.md).
116 changes: 116 additions & 0 deletions docs/quick-start.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
# 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-18
sudo apt install percona-postgresql-18
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-18
sudo apt install percona-postgresql-18
```

The installation process automatically initializes and starts the default database.

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>
5 changes: 3 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ nav:
- 'Home': 'index.md'
- 'Percona Server for PostgreSQL': postgresql-server.md
- get-help.md
- Quickstart guide: quick-start.md
- Get started:
- Quickstart guide: installing.md
- 1. Install:
- 1. Install:
- Overview: installing.md
- Via apt: apt.md
- Via yum: yum.md
- From tarballs: tarball.md
Expand Down