Re: Security definer "generated column" function used in index
От | Tom Lane |
---|---|
Тема | Re: Security definer "generated column" function used in index |
Дата | |
Msg-id | 17366.1324417999@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: Security definer "generated column" function used in index ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>) |
Ответы |
Re: Security definer "generated column" function used
in index
|
Список | pgsql-bugs |
"Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes: > ... It wasn't even clear to me that it was > OK to have one security definer function call another, based on the > code comment I quoted, so I didn't want to spend more hours on > attempting to create a test case if it simply wasn't supported. Yes, that's definitely *supposed* to work, though I'll grant that there could be bugs there. It's hard to see how it'd be a race condition though. On reflection what seems most likely is simply that turning these otherwise-inlineable SQL functions into SECURITY DEFINER disabled inline-ing them, resulting in catastrophic degradation of the generated plans, such that they took a lot longer than you were accustomed to (they shouldn't have been "hung" though). regards, tom lane
В списке pgsql-bugs по дате отправления: