Re: BUG #7748: "drop owned by" fails with error message: "unrecognized object class: 1262"
В списке pgsql-bugs по дате отправления:
| От | Thomas Kellerer |
|---|---|
| Тема | Re: BUG #7748: "drop owned by" fails with error message: "unrecognized object class: 1262" |
| Дата | |
| Msg-id | ka2gag$4nb$1@ger.gmane.org обсуждение исходный текст |
| Ответ на | Re: BUG #7748: "drop owned by" fails with error message: "unrecognized object class: 1262" (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-bugs |
Tom Lane wrote on 09.12.2012 17:43: > spam_eater@gmx.net writes: >> postgres=# create user testuser with password 'secret'; >> CREATE ROLE >> postgres=# create database testdb owner testuser; >> CREATE DATABASE >> testdb=> drop owned by testuser; >> ERROR: unrecognized object class: 1262 > > I can reproduce this in all versions back to 8.3. In 8.2, the role's > ownership of the database is silently ignored, which I think was the > design intention. I doubt that we want DROP OWNED dropping whole > databases. At most maybe we should raise a NOTICE? > I don't want to drop the database, just all objects that are created by that user (tables, schemas, ...) (In my example I first create a table) And this has definitely worked before, otherwise my unit tests would have failed all the time. Regards Thomas
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера