mirror of
https://github.com/postgres/postgres.git
synced 2025-05-28 00:03:23 -04:00
Move conversion dependency patch to the proper branch, out of 8.1.X,
into HEAD.
This commit is contained in:
parent
9eb0d6a6b2
commit
fc079f8411
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* 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 @@
|
||||
#include "catalog/dependency.h"
|
||||
#include "catalog/indexing.h"
|
||||
#include "catalog/pg_conversion.h"
|
||||
#include "catalog/pg_namespace.h"
|
||||
#include "catalog/pg_proc.h"
|
||||
#include "catalog/namespace.h"
|
||||
#include "utils/builtins.h"
|
||||
@ -124,6 +125,12 @@ ConversionCreate(const char *conname, Oid connamespace,
|
||||
recordDependencyOnOwner(ConversionRelationId, HeapTupleGetOid(tup),
|
||||
conowner);
|
||||
|
||||
/* create dependency on namespace */
|
||||
myself.classId = ConversionRelationId;
|
||||
referenced.classId = NamespaceRelationId;
|
||||
referenced.objectId = connamespace;
|
||||
recordDependencyOn(&myself, &referenced, DEPENDENCY_NORMAL);
|
||||
|
||||
heap_freetuple(tup);
|
||||
heap_close(rel, RowExclusiveLock);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user