mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +03:00
Opclasses live in namespaces. I also took the opportunity to create
an 'opclass owner' column in pg_opclass. Nothing is done with it at present, but since there are plans to invent a CREATE OPERATOR CLASS command soon, we'll probably want DROP OPERATOR CLASS too, which suggests that a notion of ownership would be a good idea.
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.178 2002/04/16 23:08:10 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.179 2002/04/17 20:57:56 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -1714,8 +1714,7 @@ _copyIndexElem(IndexElem *from)
|
||||
newnode->name = pstrdup(from->name);
|
||||
Node_Copy(from, newnode, funcname);
|
||||
Node_Copy(from, newnode, args);
|
||||
if (from->class)
|
||||
newnode->class = pstrdup(from->class);
|
||||
Node_Copy(from, newnode, opclass);
|
||||
|
||||
return newnode;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user