| От | Greg Stark |
|---|---|
| Тема | Re: has_schema_privilege function |
| Дата | |
| Msg-id | 407d949e1003090632v742beb10ie132fb42e356ec01@mail.gmail.com обсуждение исходный текст |
| Ответ на | has_schema_privilege function (Jignesh Shah <jignesh.shah1980@gmail.com>) |
| Список | pgsql-general |
On Tue, Mar 9, 2010 at 10:28 AM, Jignesh Shah <jignesh.shah1980@gmail.com> wrote: > Could you tell me is there any other robust way to make sure that user1 > doesn't have CREATE permissions on mydb schema? It depends what you're worried about. If you're worried that plperl will begin mapping booleans to perl variables differently or Postgres will change the text representation then you could alter the SQL to say something like CASE WHEN has_schema_privilege() THEN 1 ELSE 0 END or whatever constant you prefer like 'yes' and 'no' or 'ok' and ''. -- greg
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера