| От | Tom Lane |
|---|---|
| Тема | Re: BUG #14200: Cannot create a table named 'user' |
| Дата | |
| Msg-id | 25300.1466312007@sss.pgh.pa.us обсуждение |
| Ответ на | Re: BUG #14200: Cannot create a table named 'user' ("David G. Johnston" <david.g.johnston@gmail.com>) |
| Список | pgsql-bugs |
"David G. Johnston" <david.g.johnston@gmail.com> writes: > On Saturday, June 18, 2016, <liveloveprosper@gmail.com> wrote: >> What if I want to create a user table for my application? Shouldn't I be >> able to call that table user? > If you quote it you can. Worth noting here is that USER is a reserved word according to the SQL standard, as well as our documentation: https://www.postgresql.org/docs/9.5/static/sql-keywords-appendix.html You should not be surprised that you can't use it as a generic identifier without adding quotes. (The only reason it's reserved in Postgres is to implement the spec-defined meaning of the keyword. I can't imagine that we'd have chosen to reserve it without that requirement.) regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера