Category Postgresql

3 ways to get table size in Postgres

Get table size with pg_relation_size in Postgres PostgreSQL provides a dedicated function, pg_relation_size, to compute the actual disk space used by a specific table or index. We just need to provide the table name. To check the size of a…

How to get Postgresql server uptime

In this post, we will delve into the concept of PostgreSQL server uptime, why it matters, and how to accurately measure it using SQL queries and built-in functions. By understanding how to obtain the uptime of a PostgreSQL server, you…

4 ways to get Postgresql version

As a popular and powerful open-source relational database management system, PostgreSQL is widely used in many applications. In this post, we will explore different methods to retrieve the PostgreSQL version information. We will cover SQL queries that can be executed…