Hacker News new | past | comments | ask | show | jobs | submit login

One time, me, a noob, accidentally deleted files in the PG data directory. No noe! But PG had open handles to them so they aren't reclaimed by the FS and I was able to pg_dump. Not a production system but the loss would've been "big". Just saying, PG itself is very resilient.



> One time, me, a noob, accidentally deleted files in the PG data directory. No noe! But PG had open handles to them so they aren't reclaimed by the FS and I was able to pg_dump. Not a production system but the loss would've been "big". Just saying, PG itself is very resilient.

That isn't a PG thing; Linux[1] ext3/4 does not actually delete files (or directories) that are still in use. Only the name is removed. The file itself remains until the last open handle to it is closed.

[1] Amongst other OSes


if you'd read the previous post carefully, you'd have seen they said that


> if you'd read the previous post carefully, you'd have seen they said that

I did read it carefully (and quoted the whole thing for context), but that final line made it seem that it was PG that was responsible for that particular instance of resilience.

Someone who isn't familiar with how ext3/4 handles deletes might, from the comment alone, assume that the same sort of thing would happen on other filesystems.


Did their clarification truly merit such a snarky response?


it wasn't clarification; it was repetition


No, the comment did make it sound like it was PG’s resilience that saved the data. In fact that seems to be the whole point of the comment.

So the snark does seem out of place and the clarification useful.


nice bit of white-knighting there


> nice bit of white-knighting there

Is it really constructive to throw insults[1]? I explained myself above, after all.

[1] I had to look it up to see what it means: https://en.wikipedia.org/wiki/White_knight. Since we aren't in a business context, I can only assume that you think I am female :-)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: