-

How to Rename a Database in PostgreSQL: A Beginner’s Guide
Hi! In this article i will show you how to rename a database in PostgreSQL. For those who does not have time to read our whole detailed article command template we use is: It’s not uncommon to encounter situations where you need to rename a database in PostgreSQL. Perhaps you’ve changed project details, need to…
-

PostgreSQL Alter Tablespace – How to Guide
Hello! In this article we will discuss about Postgresql alter tablespace. In our previous article we talked about PostgreSQL Create Tablespace. After creating a tablespace in PostgreSQL you may need to alter it after a while. What you can change via altering a tablespace: Let’s create a tablespace first to run examples: Altering a Tablespace…
-

How to View a Table in PostgreSQL?
Hello! Today we are here for a very simple question. How to view a table in PostgreSQL? I saw this question searched on Google around 50 times each month, and want to explain answer of the question. Well, question itself was not really clear, but i believe there can be two different options are available:…
-

Postgres like Query Performance
Hello! In this article we are going to talk about postgres like query performance. Also we will talk about improving like query performance. To stay with me on the same page, you can prepare a world_cities table following my guide about importing csv file into Postgresql using dbeaver. How Do We Measure? Each query has…
-

How to Import CSV to Postgesql Using Dbeaver
Hello, today we are going to talk about How to Import CSV to Postgesql Using Dbeaver topic. For this article we will use a sample csv file which contains cities. You can download CSV sample from https://github.com/datasets/world-cities/blob/master/data/world-cities.csv URL. How to Import CSV to Postgesql Using Dbeaver In this article i will only use Dbeaver to…
-

How to Create Database in Postgresql in Linux Terminal?
Hello! In this article we will talk about how to create a database in PostgreSQL in the Linux terminal. Psql is a terminal client we can use to manipulate database objects. For more information you can check Postgresql documentation for CREATE DATABASE statement. How to Create Database in Postgresql in Linux Terminal? First of all…
-

How to Check Active Sessions in PostgreSQL?
Hello! In this article we will cover how to check active sessions in PostgreSQL topic. What is a Session? A session is a connection. When you connect to your database using psql command line it is a session, or using dbeaver it is a session. Pooled Connection Sources I would like to put a separate…
-

How to Check Running Queries in Postgres?
Hello! Monitoring running queries is important for monitoring performance issues and bottlenecks in the database. In this article we will talk about how to check running queries in Postgres and help you to understand pg_stat_activity catalog view. Keeping PostgreSQL database performance over a line is a database administrators primary job. Finding and understanding low performing…
-

How to Create Role Postgres?
I understand the importance of providing detailed information on creating roles in Postgres to help those who may be familiar with other database engines. Let’s talk abour how to create role Postgres in this article. When it comes to database management systems, the concept of a “role” in Postgres can indeed be confusing for individuals…
-

How to Create a Temporary Table in PostgreSQL?
Hello! Temporary tables are useful data storage unit while doing ETL tasks, and processing data. In this article i will show you how to create a temporary table in PostgreSQL? Temporary Tables In PostgreSQL Those tables are not stored in PostgreSQL permanently, when session ends, PostgreSQL automatically drops temporary tables defined during the session. That…
