Commit fc079f84 authored by Bruce Momjian's avatar Bruce Momjian

Move conversion dependency patch to the proper branch, out of 8.1.X,

into HEAD.
parent 9eb0d6a6
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/catalog/pg_conversion.c,v 1.29 2006/03/05 15:58:23 momjian Exp $ * $PostgreSQL: pgsql/src/backend/catalog/pg_conversion.c,v 1.30 2006/05/30 13:36:30 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include "catalog/dependency.h" #include "catalog/dependency.h"
#include "catalog/indexing.h" #include "catalog/indexing.h"
#include "catalog/pg_conversion.h" #include "catalog/pg_conversion.h"
#include "catalog/pg_namespace.h"
#include "catalog/pg_proc.h" #include "catalog/pg_proc.h"
#include "catalog/namespace.h" #include "catalog/namespace.h"
#include "utils/builtins.h" #include "utils/builtins.h"
...@@ -124,6 +125,12 @@ ConversionCreate(const char *conname, Oid connamespace, ...@@ -124,6 +125,12 @@ ConversionCreate(const char *conname, Oid connamespace,
recordDependencyOnOwner(ConversionRelationId, HeapTupleGetOid(tup), recordDependencyOnOwner(ConversionRelationId, HeapTupleGetOid(tup),
conowner); conowner);
/* create dependency on namespace */
myself.classId = ConversionRelationId;
referenced.classId = NamespaceRelationId;
referenced.objectId = connamespace;
recordDependencyOn(&myself, &referenced, DEPENDENCY_NORMAL);
heap_freetuple(tup); heap_freetuple(tup);
heap_close(rel, RowExclusiveLock); heap_close(rel, RowExclusiveLock);
......
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