From 27a54ae282d74ee471a5b34d136fe3d4f894a9de Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 17 Apr 2002 20:57:57 +0000 Subject: 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. --- src/tutorial/complex.source | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/tutorial/complex.source') diff --git a/src/tutorial/complex.source b/src/tutorial/complex.source index c30e048f3cb..6fbaaf89dbd 100644 --- a/src/tutorial/complex.source +++ b/src/tutorial/complex.source @@ -7,7 +7,7 @@ -- -- Copyright (c) 1994, Regents of the University of California -- --- $Id: complex.source,v 1.11 2001/10/26 20:45:33 tgl Exp $ +-- $Id: complex.source,v 1.12 2002/04/17 20:57:57 tgl Exp $ -- --------------------------------------------------------------------------- @@ -170,10 +170,12 @@ CREATE OPERATOR > ( restrict = scalargtsel, join = scalargtjoinsel ); -INSERT INTO pg_opclass (opcamid, opcname, opcintype, opcdefault, opckeytype) +INSERT INTO pg_opclass (opcamid, opcname, opcnamespace, opcowner, opcintype, opcdefault, opckeytype) VALUES ( (SELECT oid FROM pg_am WHERE amname = 'btree'), 'complex_abs_ops', + (SELECT oid FROM pg_namespace WHERE nspname = 'pg_catalog'), + 1, -- UID of superuser is hardwired to 1 as of PG 7.3 (SELECT oid FROM pg_type WHERE typname = 'complex'), true, 0); -- cgit v1.2.3