Commit d5c0495c authored by Heikki Linnakangas's avatar Heikki Linnakangas

Fix event trigger support for the new ALTER OPERATOR command.

Also, the lock on pg_operator should not be released until end of
transaction.
parent 321eed5f
......@@ -38,6 +38,7 @@
#include "access/htup_details.h"
#include "catalog/dependency.h"
#include "catalog/indexing.h"
#include "catalog/objectaccess.h"
#include "catalog/pg_operator.h"
#include "catalog/pg_type.h"
#include "commands/alter.h"
......@@ -499,7 +500,11 @@ AlterOperator(AlterOperatorStmt *stmt)
simple_heap_update(catalog, &tup->t_self, tup);
CatalogUpdateIndexes(catalog, tup);
heap_close(catalog, RowExclusiveLock);
InvokeObjectPostAlterHook(OperatorRelationId, oprId, 0);
ObjectAddressSet(address, OperatorRelationId, oprId);
heap_close(catalog, NoLock);
return address;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment