<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>database on Jaaved Ali Khan</title><link>https://jaaved.netlify.app/tags/database/</link><description>Recent content in database on Jaaved Ali Khan</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Tue, 18 Jun 2024 18:51:17 +0300</lastBuildDate><atom:link href="https://jaaved.netlify.app/tags/database/index.xml" rel="self" type="application/rss+xml"/><item><title>Postgres</title><link>https://jaaved.netlify.app/notes/20210807155730-postgres/</link><pubDate>Tue, 18 Jun 2024 18:51:17 +0300</pubDate><guid>https://jaaved.netlify.app/notes/20210807155730-postgres/</guid><description>tags , Summary # PostgreSQL is a powerful, object-relational database system with over 35 years of active development that has earned it a strong reputation for reliability, feature robustness, and performance ref
why use it? # Technical configurations # Change default port # change the `port` in `/etc/postgresql/14/main/postgresql.conf`
Change data directory location # To avoid storage problem I followed this tutorial.
# /etc/postgresql/14/main/postgresql.conf # data_directory = &amp;#39;/var/lib/postgresql/14/main&amp;#39; # use data in another directory data_directory = &amp;#39;/mnt/0d08b147-6cb2-4978-b2a0-b78f2786f72d/data/postgresql/14/main&amp;#39; Performance Improvements # Connection Pooling # When a client connects directly to a PostgreSQL database, the server forks a process to handle the connection.</description></item></channel></rss>