Index: src/bin/pg_dump/pg_dump.c
===================================================================
RCS file: /cvsroot/pgsql-server/src/bin/pg_dump/pg_dump.c,v
retrieving revision 1.342
diff -c -c -r1.342 pg_dump.c
*** src/bin/pg_dump/pg_dump.c	4 Aug 2003 02:40:09 -0000	1.342
--- src/bin/pg_dump/pg_dump.c	8 Aug 2003 01:11:38 -0000
***************
*** 3698,3706 ****
  
  	initPQExpBuffer(&fn);
  	if (honor_quotes)
! 		appendPQExpBuffer(&fn, "%s (", fmtId(finfo->proname));
  	else
! 		appendPQExpBuffer(&fn, "%s (", finfo->proname);
  	for (j = 0; j < finfo->nargs; j++)
  	{
  		char	   *typname;
--- 3698,3706 ----
  
  	initPQExpBuffer(&fn);
  	if (honor_quotes)
! 		appendPQExpBuffer(&fn, "%s(", fmtId(finfo->proname));
  	else
! 		appendPQExpBuffer(&fn, "%s(", finfo->proname);
  	for (j = 0; j < finfo->nargs; j++)
  	{
  		char	   *typname;
***************
*** 6007,6013 ****
  	if (!schemaOnly)
  	{
  		resetPQExpBuffer(query);
! 		appendPQExpBuffer(query, "SELECT pg_catalog.setval (");
  		appendStringLiteral(query, fmtId(tbinfo->relname), true);
  		appendPQExpBuffer(query, ", %s, %s);\n",
  						  last, (called ? "true" : "false"));
--- 6007,6013 ----
  	if (!schemaOnly)
  	{
  		resetPQExpBuffer(query);
! 		appendPQExpBuffer(query, "SELECT pg_catalog.setval(");
  		appendStringLiteral(query, fmtId(tbinfo->relname), true);
  		appendPQExpBuffer(query, ", %s, %s);\n",
  						  last, (called ? "true" : "false"));
***************
*** 6384,6393 ****
  
  			/* In 7.3, result of regproc is already quoted */
  			if (g_fout->remoteVersion >= 70300)
! 				appendPQExpBuffer(query, "EXECUTE PROCEDURE %s (",
  								  tgfname);
  			else
! 				appendPQExpBuffer(query, "EXECUTE PROCEDURE %s (",
  								  fmtId(tgfname));
  			for (findx = 0; findx < tgnargs; findx++)
  			{
--- 6384,6393 ----
  
  			/* In 7.3, result of regproc is already quoted */
  			if (g_fout->remoteVersion >= 70300)
! 				appendPQExpBuffer(query, "EXECUTE PROCEDURE %s(",
  								  tgfname);
  			else
! 				appendPQExpBuffer(query, "EXECUTE PROCEDURE %s(",
  								  fmtId(tgfname));
  			for (findx = 0; findx < tgnargs; findx++)
  			{
