You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Switch some system functions to use get_call_result_type()
This shaves some code by replacing the combinations ofCreateTemplateTupleDesc()/TupleDescInitEntry() hardcoding a mapping ofthe attributes listed in pg_proc.dat by get_call_result_type() to buildthe TupleDesc needed for the rows generated.get_call_result_type() is more expensive than the former style, but thisremoves some duplication with the lists of OUT parameters (pg_proc.datand the attributes hardcoded in these code paths). This is applied tofunctions that are not considered as critical (aka that could be calledrepeatedly for monitoring purposes).Author: Bharath RupireddyReviewed-by: Robert Haas, Álvaro Herrera, Tom Lane, Michael PaquierDiscussion:https://postgr.es/m/CALj2ACV23HW5HP5hFjd89FNS-z5X8r2jNXdMXcpN2BgTtKd87w@mail.gmail.com