Skip site navigation (1) Skip section navigation (2)

SVN Commit by dpage: r4847 - in trunk/pgadmin3: . src/schema

From: svn(at)pgadmin(dot)org
To: pgadmin-hackers(at)postgresql(dot)org
Subject: SVN Commit by dpage: r4847 - in trunk/pgadmin3: . src/schema
Date: 2005-12-15 09:28:23
Message-ID: 200512150928.jBF9SNOm021436@developer.pgadmin.org (view raw or flat)
Thread:
Lists: pgadmin-hackers
Author: dpage
Date: 2005-12-15 09:28:22 +0000 (Thu, 15 Dec 2005)
New Revision: 4847

Modified:
   trunk/pgadmin3/CHANGELOG.txt
   trunk/pgadmin3/src/schema/pgSchema.cpp
Log:
Exclude system schemas by name rather than OID, so that 'public' can be safely renamed.

Modified: trunk/pgadmin3/CHANGELOG.txt
===================================================================
--- trunk/pgadmin3/CHANGELOG.txt	2005-12-15 09:28:08 UTC (rev 4846)
+++ trunk/pgadmin3/CHANGELOG.txt	2005-12-15 09:28:22 UTC (rev 4847)
@@ -18,6 +18,7 @@
 </ul>
 <br>
 <ul>
+    <li>2005-12-15 DP  1.4.2  Exclude system schemas by name rather than OID, so that 'public' can be safely renamed.
     <li>2005-12-12 AP  1.4.2  fix slony node statistics
     <li>2005-12-11 AP         support 8.1 language templates
     <li>2005-12-11 AP  1.4.2  Fix: Unsubscribe set on receiver

Modified: trunk/pgadmin3/src/schema/pgSchema.cpp
===================================================================
--- trunk/pgadmin3/src/schema/pgSchema.cpp	2005-12-15 09:28:08 UTC (rev 4846)
+++ trunk/pgadmin3/src/schema/pgSchema.cpp	2005-12-15 09:28:22 UTC (rev 4847)
@@ -174,8 +174,7 @@
 
     pgSet *schemas = collection->GetDatabase()->ExecuteSet(
         wxT("SELECT CASE WHEN nspname LIKE 'pg\\_temp\\_%%' THEN 1\n")
-        wxT("            WHEN (nsp.oid<") + NumToStr(collection->GetServer()->GetLastSystemOID()) +
-                         wxT(" OR nspname like 'pg\\_%') AND nspname != 'public' THEN 0\n")
+        wxT("            WHEN (nspname LIKE 'pg\\_%' OR nspname = 'information_schema') THEN 0\n")
         wxT("            ELSE 3 END AS nsptyp,\n")
         wxT("       nsp.nspname, nsp.oid, pg_get_userbyid(nspowner) AS namespaceowner, nspacl, description,")
         wxT("       has_schema_privilege(nsp.oid, 'CREATE') as cancreate\n")


pgadmin-hackers by date

Next:From: Guillaume LelargeDate: 2005-12-15 09:37:34
Subject: Re: Schema bug
Previous:From: svnDate: 2005-12-15 09:28:08
Subject: SVN Commit by dpage: r4846 - in branches/REL-1_4_0_PATCHES/pgadmin3: . src/schema

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group