Re: [HACKERS] AlterUserStmt anmd RoleSpec rules in grammar.y
В списке pgsql-hackers по дате отправления:
| От | Peter Eisentraut |
|---|---|
| Тема | Re: [HACKERS] AlterUserStmt anmd RoleSpec rules in grammar.y |
| Дата | |
| Msg-id | 00ed6ee3-9af5-363d-cafd-be8d5b50a698@2ndquadrant.com обсуждение исходный текст |
| Ответ на | Re: [HACKERS] AlterUserStmt anmd RoleSpec rules in grammar.y (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: [HACKERS] AlterUserStmt anmd RoleSpec rules in grammar.y
|
| Список | pgsql-hackers |
On 7/26/17 11:29, Tom Lane wrote: > You'll notice that that statement fails in the regression tests: > > ALTER USER ALL SET application_name to 'SLAP'; > ERROR: syntax error at or near "ALL" > > The one that works is > > ALTER ROLE ALL SET application_name to 'SLAP'; > > and the reason is that AlterRoleSetStmt has a separate production > for ALL, but AlterUserSetStmt doesn't. This seems a tad bizarre > though. Peter, you added that production (in commit 9475db3a4); > is this difference intentional or just an oversight? If it's > intentional, what's the reasoning? That looks like a bug to me. ALTER USER also does not support the IN DATABASE clause, so the code deviation might have started there already. I propose the attached patch to clean this up. For backpatching, I could develop some less invasive versions. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера