Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit fc079f8

Browse files
committed
Move conversion dependency patch to the proper branch, out of 8.1.X,
into HEAD.
1 parent 9eb0d6a commit fc079f8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/backend/catalog/pg_conversion.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/catalog/pg_conversion.c,v 1.29 2006/03/05 15:58:23 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/catalog/pg_conversion.c,v 1.30 2006/05/30 13:36:30 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -18,6 +18,7 @@
1818
#include "catalog/dependency.h"
1919
#include "catalog/indexing.h"
2020
#include "catalog/pg_conversion.h"
21+
#include "catalog/pg_namespace.h"
2122
#include "catalog/pg_proc.h"
2223
#include "catalog/namespace.h"
2324
#include "utils/builtins.h"
@@ -124,6 +125,12 @@ ConversionCreate(const char *conname, Oid connamespace,
124125
recordDependencyOnOwner(ConversionRelationId, HeapTupleGetOid(tup),
125126
conowner);
126127

128+
/* create dependency on namespace */
129+
myself.classId = ConversionRelationId;
130+
referenced.classId = NamespaceRelationId;
131+
referenced.objectId = connamespace;
132+
recordDependencyOn(&myself, &referenced, DEPENDENCY_NORMAL);
133+
127134
heap_freetuple(tup);
128135
heap_close(rel, RowExclusiveLock);
129136

0 commit comments

Comments
 (0)