Re: schemas not appearing in pgAdmin

From: Dave Page <dpage(at)postgresql(dot)org>
To: Derek Fonda <Derek(dot)Fonda(at)Level3(dot)com>
Cc: pgadmin-support(at)postgresql(dot)org, Michael Peterson <Michael(dot)Peterson(at)Level3(dot)com>, Phil MacDonald <Philip(dot)MacDonald(at)Level3(dot)com>
Subject: Re: schemas not appearing in pgAdmin
Date: 2007-10-26 10:50:42
Message-ID: 4721C682.3030605@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

Derek Fonda wrote:
> I'm running postgres 8.0.3 (Solaris) and PgAdmin III 1.8.0
>
> I created a schema in my prod DB that is named pgmacdon, however it
> appears that pgAdmin III is not displaying this schema as existing in
> the prod DB.
>
> It would appear that you are using the wrong query to exclude the pg_*
> internal schemas
>
> PgAdmin III appears to be doing a query similar to the following to
> retrieve the list of schemas to display:
>
> SELECT
> nspname,
> CASE WHEN nspname LIKE 'pg\_tmp\_%%' THEN 1
> WHEN (nspname LIKE 'pg\_%') THEN 0
> ELSE 3 END AS nsptyp
> FROM
> pg_namespace

Thanks - it was escaped, but because it was in a C string in the source
code it should have been double-escaped. Fixed in SVN for 1.8.

Regards, Dave.

In response to

Browse pgadmin-support by date

  From Date Subject
Next Message Dave Page 2007-10-26 13:30:27 Re: pgAdmin isn't quoting quotes
Previous Message Dave Page 2007-10-26 09:41:22 Re: pgadminIII - 1.8 - crash