pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #5788: I can drop table , with other user's table
2+ messages / 2 participants
[nested] [flat]

* BUG #5788: I can drop table , with other user's table
@ 2010-12-10 02:41 nobuyuki yoshida <nob-yoshida@fissc.co.jp>
  2010-12-11 15:44 ` Re: BUG #5788: I can drop table , with other user's table Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: nobuyuki yoshida @ 2010-12-10 02:41 UTC (permalink / raw)
  To: pgsql-bugs


The following bug has been logged online:

Bug reference:      5788
Logged by:          nobuyuki yoshida
Email address:      nob-yoshida@fissc.co.jp
PostgreSQL version: 8.4.5
Operating system:   centos 5.5
Description:        I can drop table , with other user's table
Details: 

Hi. I found a bug:I can drop a table with not owner user.
Document says "Only its owner can drop a table.", but a fuct is not so.

Here is steps to reproduce:
1. command with postgres on psql
   create schema scm_test;
   create user scm_test;
   alter schema scm_test owner to scm_test;
   create table scm_test.test (id char(10));

2. command with scm_test on psql
   drop table test;

Then, success drop user postgres's table with user scm_test!



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

* Re: BUG #5788: I can drop table , with other user's table
  2010-12-10 02:41 BUG #5788: I can drop table , with other user's table nobuyuki yoshida <nob-yoshida@fissc.co.jp>
@ 2010-12-11 15:44 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2010-12-11 15:44 UTC (permalink / raw)
  To: nobuyuki yoshida <nob-yoshida@fissc.co.jp>; +Cc: pgsql-bugs

"nobuyuki yoshida" <nob-yoshida@fissc.co.jp> writes:
> Hi. I found a bug:I can drop a table with not owner user.
> Document says "Only its owner can drop a table.", but a fuct is not so.

The documentation also says that the owner of a schema can drop anything
in that schema.

			regards, tom lane



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


end of thread, other threads:[~2010-12-11 15:44 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-12-10 02:41 BUG #5788: I can drop table , with other user's table nobuyuki yoshida <nob-yoshida@fissc.co.jp>
2010-12-11 15:44 ` Tom Lane <tgl@sss.pgh.pa.us>

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