Sometimes we may want to create the same table in a database without the data in it by using a different name or we …
Read More »PostgreSQL
Running an Operating System Command while Connected to Postgres
You are processing in psql, but you need to look at something on the operating system side, so you must exit from the psql …
Read More »How To List Tablespaces and Objects in Tablespaces On PostgreSQL
You can use the following command to see the list of tablespaces created. [crayon-6703eabcaab82240582960/] You can also use the following script to list …
Read More »PostgreSQL up-time
There are countless ways of understanding how long PostgreSQL has been turned on. In this article we will talk about 3 methods. 1)Using …
Read More »How To Install PostgreSQL 9.6 on Debian 8.x (Jessie)
As you know, at the end of September 2016, PostgreSQL version 9.6 was released. In this article you will find the installation steps of …
Read More »Column Level Encryption With pgcrypto On PostgreSQL
Create Extension First, if the extension is not present, it is created with the following command. [crayon-6703eabcab105250902322/] The functions we will use; [crayon-6703eabcab109312869340/] Example: We …
Read More »POSTGRESQL DATABASE MONITORING
In this article I will share some monitoring scripts about postgresql. To Check if the Postgresql service is running via OS(linux): [crayon-6703eabcab2ec100574223/] …
Read More »How To Encrypt a Column(Like Password) with chkpass On PostgreSQL
We may need to keep passwords in databases for some reason, and we don’t want anyone to see them, including dba. In postgresql there …
Read More »POSTGRESQL DATABASE PERFORMANCE – 2
This article is the second article of the performance series. You can find the first articles link “POSTGRESQL DATABASE PERFORMANCE – 1” In the …
Read More »POSTGRESQL DATABASE PERFORMANCE – 1
If we examine some performance parameters in postgresql, I will mention a few parameters that will be quite useful for performance. You can configure …
Read More »