Search Postgresql Archives

Re: Deleting a table file does not raise an error when the table is touched afterwards, why?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 30 May 2016 at 16:35, Daniel Westermann <daniel.westermann@xxxxxxxxxxxxxxxx> wrote:
... 
Then I delete the file:
...
No issue in the log. This is probably coming from the cache, isn't it? Is this intended and safe?

Postgres manages your data for you. What you're doing is not a supported use case and I recommend not to do that in the future.
 
Can someone please tell me the intention behind that? From my point of view this is dangerous. If nobody is monitoring the log (which sadly is the case in reality) nobody will notice that only parts of the table are there. Wouldn't it be much more safe to raise an error as soon as the table is touched?

How would we know that an external agent had deleted the file? What action should we take if we did notice?

It's a very good thing that we remain flying even with multiple bullet holes in the wings.

--
Simon Riggs                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux