Re: [HACKERS] regproc and when to schema-qualify
От | Tom Lane |
---|---|
Тема | Re: [HACKERS] regproc and when to schema-qualify |
Дата | |
Msg-id | 21477.1497198904@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | [HACKERS] regproc and when to schema-qualify (Chapman Flack <chap@anastigmatix.net>) |
Список | pgsql-hackers |
Chapman Flack <chap@anastigmatix.net> writes: > The manual says regproc "will display schema-qualified names on output > if the object would not be found in the current search path without > being qualified." That's less than the full truth :-( > Is regproc displaying the schema in this case because there are two > overloaded flavors of ginarrayextract, though both are in pg_catalog? Yes, see the test in regprocout: * Would this proc be found (uniquely!) by regprocin? If not, * qualify it. Of course, in a situation like this, schema-qualification is not enough to save the day; regprocin will still fail because the name is ambiguous. You really need to use regprocedure not regproc if you want any guarantees about the results. (The fact that we have regproc at all is a bit of a historical accident, caused by some limitations of the bootstrap mode.) regards, tom lane
В списке pgsql-hackers по дате отправления: