In PostgreSQL, views are logical tables. By turning queries into views we can use complex queries with a simple select statement. For example, if …
Read More »PostgreSQL
How To Create Stored Procedure,Function On PostgreSQL
Stored Procedure and Function concepts in PostgreSQL are not the same as in other relational databases. Functions are used like stored procedures. In some …
Read More »Where is the Log File In PostgreSQL
When there is an error in a database system, the first thing we do is look at the logs. In this article, I will …
Read More »How To Get Size Of All Tables And Database On PostgreSQL
In a Cluster you can list all the databases and their sizes withe below script. I prefer one application db for a cluster generally. …
Read More »How To Give Permission To a User On PostgreSQL
In this article we will examine how to give permission to a user in PostgreSQL. You should click on the Postgres menu item for …
Read More »How to List PostgreSQL Users and Permission
In this article I will share a few scripts in postgres databases that I think will help you manage your users. The easiest way to …
Read More »How To Change PostgreSQL User Password
In PostgreSQL, when a user forgets a password, you can change the user’s password with an authorized user using the following script. [crayon-67d38d433ecd9430403331/] …
Read More »How To Find PostgreSQL lib and bin Directories
We find the bin directory of PostgreSQL using the command below. [crayon-67d38d433ef00980376230/] You can see this directory in the white box in the screen …
Read More »role “x” cannot be dropped because some objects depend on it
If you want to delete the PostgreSQL user, we can get the error “role x can not be dropped because some objects depend on …
Read More »FATAL: could not create semaphores: No space left on device
If you increase the value of the MAX_Connections parameter in the postgresql.conf file, you can get this error while starting the PostgreSQL service. You should …
Read More »