-
Notifications
You must be signed in to change notification settings - Fork 251
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 #2840 from EnterpriseDB/release/2022-06-22
Release: 2022-06-22
- Loading branch information
Showing
64 changed files
with
1,163 additions
and
693 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
6 changes: 0 additions & 6 deletions
6
...e/templates/products/edb-postgres-advanced-server/_centos-rhel-connectdatabasecluster.njk
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
...all_template/templates/products/edb-postgres-advanced-server/_centos-rhel-postinstall.njk
This file was deleted.
Oops, something went wrong.
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
108 changes: 44 additions & 64 deletions
108
install_template/templates/products/edb-postgres-advanced-server/base.njk
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 |
---|---|---|
@@ -1,72 +1,52 @@ | ||
{% extends "platformBase/" + platformBaseTemplate + '.njk' %} | ||
{% set packageName %}edb-as<xx>-server{% endset %} | ||
{% block installCommand %} | ||
```shell | ||
zypper -n install {{ packageName }} | ||
``` | ||
Where xx is the version of EDB Postgres Advanced Server you are installing. | ||
{% endblock installCommand %} | ||
|
||
{% block postinstall %} | ||
## Connecting to Your Database cluster | ||
|
||
This section steps you through getting started with your cluster including logging in, ensuring the installation and initial configuration was successful, connecting to your cluster, and creating the user password. | ||
|
||
{% block connectdatabasecluster %}{% endblock connectdatabasecluster %} | ||
1. To work in your cluster, login as `enterprisedb` user: | ||
|
||
```sh | ||
su - enterprisedb | ||
``` | ||
See [Managing Your Cluster > Managing Services], for more information. | ||
|
||
1. Connect to the database server using psql command line client: | ||
|
||
```sh | ||
psql edb | ||
``` | ||
See [Managing Your Cluster > Connecting to Your Cluster], for more information including how to use pgAdmin4 to connect to your cluster using its graphical interface. | ||
|
||
1. Then, assign a password to the database superuser `enterprisedb`: | ||
Where `<xx>` is the version of the EDB Postgres Advanced server you are installing. | ||
|
||
```sh | ||
ALTER ROLE enterprisedb IDENTIFIED BY password; | ||
``` | ||
{% block individual_component %}{% endblock individual_component %} | ||
|
||
## Creating a Database | ||
## Initial configuration | ||
|
||
This section steps you through creating and adding data to a simple database. | ||
|
||
1. Create a database (named hr): | ||
|
||
```sh | ||
CREATE DATABASE hr; | ||
``` | ||
|
||
1. Connect to the new database and create a table (named dept): | ||
|
||
```sh | ||
\c hr | ||
CREATE TABLE public.dept (deptno numeric(2) NOT NULL CONSTRAINT dept_pk | ||
PRIMARY KEY, dname varchar(14) CONSTRAINT dept_dname_uq UNIQUE, loc | ||
varchar(13)); | ||
``` | ||
|
||
1. Add data to the table: | ||
|
||
```sh | ||
INSERT INTO dept VALUES (10,'ACCOUNTING','NEW YORK'); | ||
INSERT into dept VALUES (20,'RESEARCH','DALLAS'); | ||
``` | ||
|
||
1. You can use simple SQL commands to query the database and retrieve information about the data you have added to the table: | ||
{% block debian_ubuntu %} | ||
This section steps you through getting started with your cluster including logging in, ensuring the installation and initial configuration was successful, connecting to your cluster, and creating the user password. | ||
|
||
```sh | ||
SELECT * FROM dept; | ||
deptno | dname | loc | ||
--------+------------+---------- | ||
10 | ACCOUNTING | NEW YORK | ||
20 | RESEARCH | DALLAS | ||
(2 rows) | ||
``` | ||
```shell | ||
# Initialize the database cluster | ||
PGSETUP_INITDB_OPTIONS="-E UTF-8" /usr/edb/as{{ product.version }}/bin/edb-as-{{ product.version | replace(".", "") }}-setup initdb | ||
|
||
# Start the database cluster | ||
systemctl start edb-as-{{ product.version }} | ||
{% endblock debian_ubuntu %} | ||
|
||
# To work in your cluster, login as the enterprisedb user | ||
su - enterprisedb | ||
|
||
# Connect to the database server using the psql command line client | ||
psql edb | ||
|
||
# Assign a password to the database superuser the enterprisedb | ||
ALTER ROLE enterprisedb IDENTIFIED BY password; | ||
|
||
# Create a database (named hr) | ||
CREATE DATABASE hr; | ||
|
||
# Connect to the new database and create a table (named dept) | ||
\c hr | ||
CREATE TABLE public.dept (deptno numeric(2) NOT NULL CONSTRAINT dept_pk | ||
PRIMARY KEY, dname varchar(14) CONSTRAINT dept_dname_uq UNIQUE, loc | ||
varchar(13)); | ||
|
||
# Add data to the table | ||
INSERT INTO dept VALUES (10,'ACCOUNTING','NEW YORK'); | ||
INSERT into dept VALUES (20,'RESEARCH','DALLAS'); | ||
|
||
# You can use simple SQL commands to query the database and retrieve | ||
# information about the data you have added to the table | ||
SELECT * FROM dept; | ||
deptno | dname | loc | ||
--------+------------+---------- | ||
10 | ACCOUNTING | NEW YORK | ||
20 | RESEARCH | DALLAS | ||
(2 rows) | ||
``` | ||
{% endblock postinstall %} |
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
7 changes: 3 additions & 4 deletions
7
install_template/templates/products/edb-postgres-advanced-server/debian-10.njk
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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{% extends "products/edb-postgres-advanced-server/base.njk" %} | ||
{% set platformBaseTemplate = "debian-10" %} | ||
{% block postinstall %} | ||
{% include "products/edb-postgres-advanced-server/_debian-initialconfiguration.njk" %} | ||
{{ super() }} | ||
{% endblock postinstall %} | ||
{% block debian_ubuntu %} | ||
For Debian/Ubuntu platforms, initializing and starting of the database cluster is done along with the package installation. | ||
{% endblock debian_ubuntu %} |
7 changes: 3 additions & 4 deletions
7
install_template/templates/products/edb-postgres-advanced-server/debian-9.njk
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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{% extends "products/edb-postgres-advanced-server/base.njk" %} | ||
{% set platformBaseTemplate = "debian-9" %} | ||
{% block postinstall %} | ||
{% include "products/edb-postgres-advanced-server/_debian-initialconfiguration.njk" %} | ||
{{ super() }} | ||
{% endblock postinstall %} | ||
{% block debian_ubuntu %} | ||
For Debian/Ubuntu platforms, initializing and starting of the database cluster is done along with the package installation. | ||
{% endblock debian_ubuntu %} |
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
10 changes: 0 additions & 10 deletions
10
...l_template/templates/products/edb-postgres-advanced-server/rhel-8-or-centos-8-or-ol-8.njk
This file was deleted.
Oops, something went wrong.
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
13 changes: 9 additions & 4 deletions
13
install_template/templates/products/edb-postgres-advanced-server/sles-12.njk
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 |
---|---|---|
@@ -1,6 +1,11 @@ | ||
{% extends "products/edb-postgres-advanced-server/base.njk" %} | ||
{% set platformBaseTemplate = "sles-12" %} | ||
{% block postinstall %} | ||
{% include "products/edb-postgres-advanced-server/_centos-rhel-postinstall.njk" %} | ||
{{ super() }} | ||
{% endblock postinstall %} | ||
{% block individual_component %} | ||
To install an individual component: | ||
|
||
```shell | ||
zypper install <package_name> | ||
``` | ||
|
||
Where `package_name` can be any of the available package from the [available package list](https://www.enterprisedb.com/docs/epas/latest/epas_inst_linux/install_details/rpm_packages/). | ||
{% endblock individual_component %} |
8 changes: 2 additions & 6 deletions
8
install_template/templates/products/edb-postgres-advanced-server/sles-12_ppc64le.njk
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 |
---|---|---|
@@ -1,6 +1,2 @@ | ||
{% extends "products/edb-postgres-advanced-server/base.njk" %} | ||
{% set platformBaseTemplate = "sles-12" %} | ||
{% block postinstall %} | ||
{% include "products/edb-postgres-advanced-server/_centos-rhel-postinstall.njk" %} | ||
{{ super() }} | ||
{% endblock postinstall %} | ||
{% extends "products/edb-postgres-advanced-server/sles-12.njk" %} | ||
{% set includePPC = true %} |
13 changes: 9 additions & 4 deletions
13
install_template/templates/products/edb-postgres-advanced-server/sles-15.njk
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 |
---|---|---|
@@ -1,6 +1,11 @@ | ||
{% extends "products/edb-postgres-advanced-server/base.njk" %} | ||
{% set platformBaseTemplate = "sles-15" %} | ||
{% block postinstall %} | ||
{% include "products/edb-postgres-advanced-server/_centos-rhel-postinstall.njk" %} | ||
{{ super() }} | ||
{% endblock postinstall %} | ||
{% block individual_component %} | ||
To install an individual component: | ||
|
||
```shell | ||
zypper install <package_name> | ||
``` | ||
|
||
Where `package_name` can be any of the available package from the [available package list](https://www.enterprisedb.com/docs/epas/latest/epas_inst_linux/install_details/rpm_packages/). | ||
{% endblock individual_component %} |
7 changes: 1 addition & 6 deletions
7
install_template/templates/products/edb-postgres-advanced-server/sles-15_ppc64le.njk
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 |
---|---|---|
@@ -1,7 +1,2 @@ | ||
{% extends "products/edb-postgres-advanced-server/base.njk" %} | ||
{% set platformBaseTemplate = "sles-15" %} | ||
{% extends "products/edb-postgres-advanced-server/sles-15.njk" %} | ||
{% set includePPC = true %} | ||
{% block postinstall %} | ||
{% include "products/edb-postgres-advanced-server/_centos-rhel-postinstall.njk" %} | ||
{{ super() }} | ||
{% endblock postinstall %} |
10 changes: 10 additions & 0 deletions
10
install_template/templates/products/replication-server/almalinux-8-or-rocky-linux-8.njk
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,10 @@ | ||
{% extends "products/replication-server/base.njk" %} | ||
{% set platformBaseTemplate = "almalinux-8-or-rocky-linux-8" %} | ||
{% block prerequisites %} | ||
{{ super() }} | ||
1. Disable the built-in PostgreSQL module: | ||
|
||
```sh | ||
dnf -qy module disable postgresql | ||
``` | ||
{% endblock prerequisites %} |
Oops, something went wrong.