Page 1 of 1

remove or purge postgresql ?

Posted: 25. Jul 2011, 02:09
by alaskan
Is there a way to completely purge postgresql files/directories and start over?
I messed up my installation (before finding the instructions in /usr/doc/postgresql or wherever). Now, I can't install the program and files according to directions.
I have never used *sql and am trying to learn, but I really mess postgresql up. Also, no man page or documentations are to be found :(
I'm not on my salix system right now, so can't be more specific on what all is missing. I remember one initd command wouldn't work at all.

TIA
a

Re: remove or purge postgresql ?

Posted: 25. Jul 2011, 18:59
by gapan
You can probably find all the configuration files in the postgresql package if you run:

Code: Select all

grep etc /var/log/packages/postgresql-*
if they show up with a .new extension (most probably they will), just use the filename without it and delete all those files. Then you can reinstall the package and you would be starting from scratch.

Re: remove or purge postgresql ?

Posted: 26. Jul 2011, 00:32
by alaskan
Thanks gapan. Followed your instructions. Back to playing with and trying to learn postgresql :)
Having never worked with anything like this, it has been quite the experience ;)