Installing EDB Postgres Advanced Server on Debian 11 x86_64 v16
Before you begin the installation process:
Set up the EDB 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 determine if your repository exists, enter this command:
apt-cache search enterprisedb
If no output is generated, the repository isn't installed.
To set up the EDB repository:
Go to EDB repositories.
Select the button that provides access to the EDB repository.
Select the platform and software that you want to download.
Follow the instructions for setting up the EDB repository.
<xx> is the version of the EDB Postgres Advanced Server you're installing. For example, if you're installing version 16, the package name is
To install an individual component:
package_name can be any of the available packages from the available package list.
This section steps you through getting started with your cluster including logging in, ensuring the installation was successful, connecting to your cluster, and creating the user password.
To work in your cluster, log in as the enterprisedb user. Connect to the database server using the psql command-line client. Alternatively, you can use a client of your choice with the appropriate connection string.
The server runs with the
ident permission by default. You can change the authentication method by modifying the
Before changing the authentication method, assign a password to the database superuser, enterprisedb. For more information on changing the authentication, see Modifying the pg_hba.conf file.
Now you're ready to create and connect to a database, create a table, insert data in a table, and view the data from the table.
First, use psql to create a database named
hr to hold human resource information.
Connect to the
hr database inside psql:
Create columns to hold department numbers, unique department names, and locations:
Insert values into the
View the table data by selecting the values from the table: