Overview
PostgreSQL 16 is the latest major release of the popular open source relational database. It comes with many new features and improvements...
For further actions, you may consider blocking this person and/or reporting abuse
I think there is a typo. It is:
sudo apt install gnupg2 wget vimShould be:
sudo apt install gnupg2 wget nanoI mean you do use nano, thankfully 😉
Updated, Thank you! HAHA Yeah , takes me minutes to exit vim , hehe
I enjoy installing PostgreSQL directly on bare metal servers, without any additional overhead from Docker containers, to get pure bare metal performance.
I run this to create a
rootrole (to match with myrootuser on ubuntu 20.04) so I don't have to switch topostgresuser to usepg_restore.hi sorry for the n00b question, but how do i change the default data directory? as i am looking to install a 1TB db that will exceed my boot/os drive
Sorry for the late reply
Edit the postgresql.conf file: Find the data_directory parameter and set it to the new path you want to use. For example:
data_directory = '/new/data/path'To add on, you can run commands like
df -hShow mounted filesystems along with disk usagelsblkList all block devices along with information like mountpoints, size, typeyah that didnt quite work for me. I did end up figuring it out though, from virgin install to new custom directory took 27 steps :/
Haha , that is one of the reason why i started blogging because i realise i'm going through the same process multiple times these years. Glad you got it figured out!
nice post:)