diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2000-09-12 16:48:55 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2000-09-12 16:48:55 +0000 |
commit | cdc7170ebe45f4eec35791a73f75b43f606b8fb1 (patch) | |
tree | dba96678c54ca9678e86b836b35375aa46ad8aff | |
parent | b3fe924f2f6063daf2c0bc0c34658d8e89ee441c (diff) | |
download | postgresql-cdc7170ebe45f4eec35791a73f75b43f606b8fb1.tar.gz postgresql-cdc7170ebe45f4eec35791a73f75b43f606b8fb1.zip |
Remove incorrect extra heap_close when deleting a builtin function.
-rw-r--r-- | src/backend/commands/remove.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/backend/commands/remove.c b/src/backend/commands/remove.c index f0958ab393c..c5b7968e5fd 100644 --- a/src/backend/commands/remove.c +++ b/src/backend/commands/remove.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/Attic/remove.c,v 1.51 2000/09/06 14:15:16 petere Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/Attic/remove.c,v 1.52 2000/09/12 16:48:55 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -356,15 +356,12 @@ RemoveFunction(char *functionName, /* function name to be removed */ 0); if (!HeapTupleIsValid(tup)) - { - heap_close(relation, RowExclusiveLock); func_error("RemoveFunction", functionName, nargs, argList, NULL); - } if (((Form_pg_proc) GETSTRUCT(tup))->prolang == INTERNALlanguageId || ((Form_pg_proc) GETSTRUCT(tup))->prolang == NEWINTERNALlanguageId) { - heap_close(relation, RowExclusiveLock); + /* "Helpful" notice when removing a builtin function ... */ elog(NOTICE, "Removing built-in function \"%s\"", functionName); } |