regproc cleanups
authorBruce Momjian
Fri, 2 Oct 1998 05:31:28 +0000 (05:31 +0000)
committerBruce Momjian
Fri, 2 Oct 1998 05:31:28 +0000 (05:31 +0000)
src/backend/utils/adt/regproc.c

index 4c58383884b5d677418a2c6b2e02d45f70c13682..7103fbc7959977ed64ac4f16327707a393ac61fe 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/utils/adt/regproc.c,v 1.31 1998/10/02 05:10:11 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/utils/adt/regproc.c,v 1.32 1998/10/02 05:31:28 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -62,7 +62,7 @@ regprocin(char *pro_name_or_oid)
            if (HeapTupleIsValid(proctup))
                result = (RegProcedure) proctup->t_oid;
            else
-               elog(ERROR, "No such procedure with oid %s", pro_name_or_oid);
+               elog(ERROR, "No procedure with oid %s", pro_name_or_oid);
        }
        else
        {
@@ -105,9 +105,9 @@ regprocin(char *pro_name_or_oid)
            index_close(idesc);
 
            if (matches > 1)
-               elog(ERROR, "There is more than one %s procedure, supply oid in quotes.", pro_name_or_oid);
+               elog(ERROR, "There is more than one procedure named %s.\n\tSupply the pg_proc oid inside single quotes.", pro_name_or_oid);
            else if (matches == 0)
-               elog(ERROR, "No such procedure %s", pro_name_or_oid);
+               elog(ERROR, "No procedure with name %s", pro_name_or_oid);
        }
    }
    else