In PostgreSQL, when a user forgets a password, you can change the user’s password with an authorized user using the following script. [crayon-674283b80960e448650208/] …
Read More »PostgreSQL
How To Find PostgreSQL lib and bin Directories
We find the bin directory of PostgreSQL using the command below. [crayon-674283b80994a200978439/] 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 »FATAL: remaining connection slots are reserved for non-replication superuser connections
You will get this error when you reach the max connection count in PostgreSQL. You need to increase the max connection count in the …
Read More »How To Stop, Start, Restart and Reload PostgreSQL Service
You can do PostgreSQL service management in two ways. Generally, restart or reload is required when changes are made to the postgresql.conf file. You can …
Read More »How To Create Tablespace On PostgreSQL
We should need to create tablespace on postgresql sometimes. I recommend to create a new tablespace when you create a database. Do not use …
Read More »How To List All PostgreSQL Databases
After connecting to PostgreSQL with psql, you can list all databases with the following command. To connect to PostgreSQL and create a database, you …
Read More »Why PostgreSQL Allows Non-Privileged Users To Create Tables?
If you grant users the right to connect in a database, they can create a table under the default schema, the public schema. It …
Read More »How To Change PostgreSQL User While Connected To The Database
After connecting to the database in PostgreSQL, you may want to change the user you are connected to. You may want to read the article …
Read More »