| От | Tom Lane |
|---|---|
| Тема | Re: Schemas to Search_path |
| Дата | |
| Msg-id | 9371.1110416243@sss.pgh.pa.us обсуждение |
| Ответ на | Schemas to Search_path ("Subbiah, Stalin" <SSubbiah@netopia.com>) |
| Список | pgsql-admin |
"Subbiah, Stalin" <SSubbiah@netopia.com> writes:
> I logged into foodb as foo user and tried to create a table. Bang!
> ERROR: no schema has been selected to create in. search_path had $user,
> public the default ones, shouldn't the table get created in user's
> authorized schema.
Which one?
Now, if you make the schema name the same as the user name, it will do
what you want --- that's what the $user is for. If you want some other
schema that happens to belong to that user to be the default, you have
to adjust the normal value of search_path. (See ALTER USER SET if you'd
like that adjustment to be done for you automatically at each login.)
regards, tom lane
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера