X-Original-To: pgsql-hackers@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 3D4704761C0 for ; Fri, 25 Apr 2003 17:39:56 -0400 (EDT) Received: from perrin.int.nxad.com (internal.ext.nxad.com [69.1.70.251]) by postgresql.org (Postfix) with ESMTP id A7D3E476128 for ; Fri, 25 Apr 2003 17:39:55 -0400 (EDT) Received: by perrin.int.nxad.com (Postfix, from userid 1001) id B38E62105E; Fri, 25 Apr 2003 14:39:56 -0700 (PDT) Date: Fri, 25 Apr 2003 14:39:56 -0700 From: Sean Chittenden To: pgsql-hackers@postgresql.org Subject: pg_namespace -> pg_schema? Message-ID: <20030425213956.GK79923@perrin.int.nxad.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-PGP-Key: finger seanc@FreeBSD.org X-PGP-Fingerprint: 3849 3760 1AFE 7B17 11A0 83A6 DD99 E31F BC84 B341 X-Web-Homepage: http://sean.chittenden.org/ X-Spam-Status: No, hits=-12.1 required=5.0 tests=BAYES_10,USER_AGENT_MUTT autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/908 X-Sequence-Number: 38398 I know pg_namespace has been in release for one rev, but I was wondering if for consistency sake there was any interest or desire or plans to change the system catalog to pg_schema. CREATE SCHEMA [schema_name]; SET search_path = foo,pubic; SELECT * FROM pg_namespace; SELECT * FROM information_schema.schemata; The four naming schemes seem a bit disjointed. I know schemata is spec mandated, but the others aren't frozen by anything as far as I can tell. If 7.3.3 is going to be around for a while, it might be nice to setup transitional warning and 1:1 views that allow: CREATE SCHEMA [schema_name]; SET schema_path = foo,public; SELECT * FROM pg_schema; to work. Just some thoughts after trying to explain the different naming practices to someone and being unable to give a good justification for namespaceo != schema != search_path. Given the feature hasn't been around that long (only 8mo), figured it might be worth considering now vs. in 5 years when it becomes apparent that there not semantically connected even though they all revolve around the same concept of schemas. -sc -- Sean Chittenden