Here is a patch, but I am not sure I am not sure if I like my idea for
format. What do you think?

SELECT pg_describe_object('pg_amproc'::regclass,oid,0)
    FROM pg_amproc WHERE oid IN (10608,10612);
                                                        pg_describe_object      
                                                  
----------------------------------------------------------------------------------------------------------------------------------
 function 1 bttextcmp(text,text) of operator family array_ops for access method 
gin for (text[],text[])
 function 1 bttextcmp(text,text) of operator family array_ops for access method 
gin for (character varying[],character varying[])
(2 rows)

Andreas

diff --git a/src/backend/catalog/dependency.c b/src/backend/catalog/dependency.c
index ec8eb74..795051e 100644
*** a/src/backend/catalog/dependency.c
--- b/src/backend/catalog/dependency.c
*************** getObjectDescription(const ObjectAddress
*** 2389,2398 ****
  				 * textual form of the function with arguments, and the second
  				 * %s is the description of the operator family.
  				 */
! 				appendStringInfo(&buffer, _("function %d %s of %s"),
  								 amprocForm->amprocnum,
  								 format_procedure(amprocForm->amproc),
! 								 opfam.data);
  				pfree(opfam.data);
  
  				systable_endscan(amscan);
--- 2389,2400 ----
  				 * textual form of the function with arguments, and the second
  				 * %s is the description of the operator family.
  				 */
! 				appendStringInfo(&buffer, _("function %d %s of %s for (%s,%s)"),
  								 amprocForm->amprocnum,
  								 format_procedure(amprocForm->amproc),
! 								 opfam.data,
! 								 format_type_be(amprocForm->amproclefttype),
! 								 format_type_be(amprocForm->amprocrighttype));
  				pfree(opfam.data);
  
  				systable_endscan(amscan);
-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to