Re: remove tablespace for primary key (*not* by drop/recreate constraint)
В списке pgsql-sql по дате отправления:
| От | Emi Lu |
|---|---|
| Тема | Re: remove tablespace for primary key (*not* by drop/recreate constraint) |
| Дата | |
| Msg-id | 5571AB88.6050900@encs.concordia.ca обсуждение |
| Ответ на | Re: remove tablespace for primary key (*not* by drop/recreate constraint) (Igor Neyman <ineyman@perceptron.com>) |
| Список | pgsql-sql |
z1 (c1 text) with pk_z1 PRIMARY KEY (c1), tablespace "abc"
how to remove tablespace(set tablespace to empty for z1)?ALTER INDEX ... SET TABLESPACE pg_default;
This is what I prefer to run. But it seems that schema owner does not have permission to run it.
"permission denied for tablespace pg_default"
Probably only postmaster can run it?
schema owner already have full control for the whole schema, this username can create/drop tables/indexs, even drop schema. I think the permission is related to the pg_default - the tablespace. For example, there are 3 tablespaces: pg_default, abc, test (is the one used by table z1)GRANT USAGE ON SCHEMA… GRANT CREATE ON SCHEMA…
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера