pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #8091: No permissions on the table file causing recovery failure
3+ messages / 3 participants
[nested] [flat]

* BUG #8091: No permissions on the table file causing recovery failure
@ 2013-04-18 11:18  haribabu.kommi@huawei.com
  0 siblings, 0 replies; 3+ messages in thread

From: haribabu.kommi@huawei.com @ 2013-04-18 11:18 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      8091
Logged by:          Hari Babu
Email address:      haribabu.kommi@huawei.com
PostgreSQL version: 9.2.4
Operating system:   Linux
Description:        

During the testing of fixed old defect with some altered scenario leads to a
defect. 

Fixed old defect description in release 9.1.3:

Avoid crashing when we have problems deleting table files post-commit (Tom
Lane)
Dropping a table should lead to deleting the underlying disk files only
after the transaction commits. In event of failure then (for instance,
because of wrong file permissions)
the code is supposed to just emit a warning message and go on, since it's
too late to abort the transaction. This logic got broken as of release 8.4,

causing such situations to result in a PANIC and an unrestartable database.


New defect scenario:
1. create table.
2. change the file permissions.
3. Drop table.
4. Restart the server leads to recovery failure.

As in the original defect, while replaying drop table redo is causing the
problem as the create table operation is carried out a long back which leads
to WAL not available in the present checkpoint cycle.

The new defect has both create and drop WAL in the checkpoint cycle causing
the create table operation replay failure.




-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* BUG #8091: No permissions on the table file causing recovery failure
@ 2013-04-24 05:01  Hari Babu <haribabu.kommi@huawei.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Hari Babu @ 2013-04-24 05:01 UTC (permalink / raw)
  To: pgsql-bugs

As the following raised bug is not received by the bugs mailing list.
Forwarding the same to mailing list.

http://www.postgresql.org/message-id/E1USmqv-0006X0-5X@wrigleys.postgresql.o
rg

Please check the above defect needs any handling?

Regards,
Hari babu.




-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #8091: No permissions on the table file causing recovery failure
@ 2013-04-24 16:04  Heikki Linnakangas <hlinnakangas@vmware.com>
  parent: Hari Babu <haribabu.kommi@huawei.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Heikki Linnakangas @ 2013-04-24 16:04 UTC (permalink / raw)
  To: Hari Babu <haribabu.kommi@huawei.com>; +Cc: pgsql-bugs

On 24.04.2013 08:01, Hari Babu wrote:
> As the following raised bug is not received by the bugs mailing list.
> Forwarding the same to mailing list.
>
> http://www.postgresql.org/message-id/E1USmqv-0006X0-5X@wrigleys.postgresql.o
> rg
>
> Please check the above defect needs any handling?

> 1. create table.
> 2. change the file permissions.
> 3. Drop table.
> 4. Restart the server leads to recovery failure.

I think the answer to that is "don't do that". There is an arbitrary 
number of ways you can make the system fail, if you mess with the files 
in the data directory. This is just one of them.

- Heikki


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2013-04-24 16:04 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2013-04-18 11:18 BUG #8091: No permissions on the table file causing recovery failure haribabu.kommi@huawei.com
2013-04-24 05:01 BUG #8091: No permissions on the table file causing recovery failure Hari Babu <haribabu.kommi@huawei.com>
2013-04-24 16:04 ` Heikki Linnakangas <hlinnakangas@vmware.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox