Install PostgreSQL on CentOS Stream 9 Server. This article will discuss what PostgreSQL is with its benefits and I will move into installation steps.
Even though NoSQL popularity is on the rise the relational databases are still preferred for many applications due to querying abilities and robustness.
PostgreSQL is an enterprise level open source database management system that can assist you in efficiently storing your most valuable data. For SQL compliance and extensibility, it supports both JSON and SQL for non relational and relational queries. It has the advanced features to compete with the big players in the industry like Sybase, Oracle, and IBM. You can use its capability to run sophisticated and data driven applications as PostgreSQL server is a professionally developed and maintained software.
It inherits the performance optimization and advanced data types features of expensive commercial databases like SQL Server and Oracle that can help in better management of your data.
PostgreSQL provides multiple benefits, but we have filtered down the top advantages that showcase why it can challenge the big players in the database system industry.
Open source
PostgreSQL is an open source database system so that you can use the source code for free under an open source license. You have the freedom to use, implement and modify the code based on your business requirements.
There are no restrictions on usability and you can improve your business operations and database management with ease.
Minimize cost
PostgreSQL doesn’t cost anything as it is a genuine open source product. You don’t need to pay a hefty license fee and worry about monthly or yearly subscriptions. It also helps you escape the hassles of vendor lock in that can disturb your business workflow.
You don’t need to indulge in the hassle of contract issues common with a high budget commercial database system. You can use PostgreSQL wherever you want and in any way you want.
It helps you save the total cost of ownership because of the above savings.
Community support
PostgreSQL has strong community support as multiple individuals and companies contribute to the project and drive innovation to the ecosystem. Over the past 25 years, it has been running strong and community support is helping the new adaptors gel with the PostgreSQL ecosystem quickly.
You can get your queries and problems resolved quickly, and it can improve your existing database management process. It is supported by many extensions and NoSQL, SQL data models.
PostgreSQL offers a wide range of features because of its extensibility that you can use to strengthen the security of your database. You need to use the right security features like data masking TDE, among others, to ensure your data is not compromised.
It offers multi layer protection from the external interface and gives the admins more control over the database.
Great scalability
PostgreSQL is a great database system that can handle your business operations at scale. It has multiple technical options that can handle the complexity of the large database network and help you streamline the process.
You can grow your PostgreSQL database based on your requirements with no hassles. It can help your business to reach the next level by offering data warehouse analytics, cloud services, high performing OLTP, Weka machines learning, IoT and data science.
The easy scalability option is one of the reasons why the industry is quickly adapting to the PostgreSQL database system.
Easy to understand
If you want to use postgres to the maximum potential, then you need to master the functionality and usability of the database system. The training of the tool is simple which makes it easier to use compared to other complex database systems.
With a robust community support network you can gain in depth knowledge about the database from experts from different industries and with different experiences.
Follow the below section of how to install PostgreSQL server on CentOS Stream 9.
By default, the latest version of PostgreSQL is not included in the CentOS Stream 9 default repository. So you will need to add the PostgreSQL repository to your server.
First, list all available PostgreSQL server version using the following command:
dnf module list postgresql
You will get a list of all PostgreSQL versions in the following output:
CentOS 9 - AppStream 6.9 MB/s | 9.7 MB 00:01
CentOS 9 - BaseOS 8.5 MB/s | 6.7 MB 00:00
CentOS 9 - Extras 30 kB/s | 12 kB 00:00
CentOS 9 - AppStream
Name Stream Profiles Summary
postgresql 9.6 client, server [d] PostgreSQL server and client module
postgresql 10 [d] client, server [d] PostgreSQL server and client module
postgresql 12 client, server [d] PostgreSQL server and client module
postgresql 13 client, server [d] PostgreSQL server and client module
Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled
As you can see, the latest PostgreSQL version 14 is not included in the above output. So you will need to add the PostgreSQL repository to your server.
Install PostgreSQL on CentOS Stream 9 Server Conclusion
In this guide, you learned what PostgreSQL is with it’s main pros and benefits and you know how to install PostgreSQL server on CentOS Stream 9 server. In addition you also learned how to create a database and user in PostgreSQL. You can now use PostgreSQL as a database backend in any web based applications.
I am a fan of open source technology and have more than 10 years of experience working with Linux and Open Source technologies. I am one of the Linux technical writers for Cloud Infrastructure Services.