0% found this document useful (0 votes)
25 views2 pages

Versiones Ubuntu LTS: Import The Repository Key From

This document provides instructions for installing PostgreSQL 12 and pgAdmin4 on Ubuntu Linux. It describes importing the PostgreSQL repository key, creating a package list file, and then updating packages and installing PostgreSQL 12 and pgAdmin4.

Uploaded by

Joisy Astor
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views2 pages

Versiones Ubuntu LTS: Import The Repository Key From

This document provides instructions for installing PostgreSQL 12 and pgAdmin4 on Ubuntu Linux. It describes importing the PostgreSQL repository key, creating a package list file, and then updating packages and installing PostgreSQL 12 and pgAdmin4.

Uploaded by

Joisy Astor
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Versiones Ubuntu Lts

Import the repository key from https://www.postgresql.org/media/keys/ACCC4CF8.asc:

sudo apt-get install curl ca-certificates gnupg


curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key
add -

Create /etc/apt/sources.list.d/pgdg.list. The distributions are called xenial-pgdg. In the

sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt


$(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'

Finally, update the package lists, and start installing packages:

sudo apt-get update


sudo apt-get install postgresql-12 pgadmin4

# DB Version: 12
# OS Type: linux
# DB Type: web
# Total Memory (RAM): 8 GB
# Data Storage: hdd

max_connections = 200
shared_buffers = 2GB
effective_cache_size = 6GB
maintenance_work_mem = 512MB
checkpoint_completion_target = 0.7
wal_buffers = 16MB
default_statistics_target = 100
random_page_cost = 4
effective_io_concurrency = 2
work_mem = 5242kB
min_wal_size = 1GB
max_wal_size = 4GB

# DB Version: 9.6
# OS Type: linux
# DB Type: web
# Total Memory (RAM): 8 GB
# Data Storage: hdd

max_connections = 200
shared_buffers = 2GB
effective_cache_size = 6GB
maintenance_work_mem = 512MB
checkpoint_completion_target = 0.7
wal_buffers = 16MB
default_statistics_target = 100
random_page_cost = 4
effective_io_concurrency = 2
work_mem = 10485kB
min_wal_size = 1GB
max_wal_size = 4GBidv

You might also like