I have messed around with the template1 database, and would like to reset everything as it was.
Hence I have done a sudo apt-get purge postgresql
However the next time I reinstalled it, the databases are still there. Why? Nothing has been reset.
|
I have messed around with the template1 database, and would like to reset everything as it was. Hence I have done a However the next time I reinstalled it, the databases are still there. Why? Nothing has been reset. |
||||
|
|
When you create your databases, the datafiles for this databases are created. These are (of course) not being purged by apt purge. If
There you can find the datafiles for your created databases. If you created your own data directories, I believe you remember where they were. Does the user For more information, consult the wonderful postgresql documentation. |
||||
|
|
|
You don't need to puge and re-install PostgreSQL for that.
|
|||
|
|