Re: Geoffrey Ferrari 2018-10-26 <CAAoeO9j+UkJ1eu-O=DU_W=p92sSxnVuyf85e=ahbmpktaxa...@mail.gmail.com> > Yesterday I ran: sudo apt-purge postgresql-10* > > This appears to have deleted my postgresql-10 data directory in > /var/lib/postgresql/10... > > Is this expected behaviour? It seems highly undesirable.
Hi Geoffrey, the difference between "apt remove" and "apt purge" is that the latter is supposed to remove all traces of the package on the system, so it works as intended. As this question keeps popping up from time to time, I'll see if we can add a debconf question about removing the PGDATA directory on purge. (Chances are it isn't possible, though.) Christoph