Re: Renaming schema's [SOLVED] - Mailing list pgsql-general

From Tom Lane
Subject Re: Renaming schema's [SOLVED]
Date
Msg-id 18241.1038840486@sss.pgh.pa.us
Whole thread Raw
In response to Re: Renaming schema's [SOLVED]  (Jochem van Dieten <jochemd@oli.tudelft.nl>)
List pgsql-general
Jochem van Dieten <jochemd@oli.tudelft.nl> writes:
> I asked on the pgadmin-support list and Dave Page answered:
> <quote>
> pgAdmin hides system objects by default, but in the case of the public
> schema it makes an exception bcause hiding public would not be sensible.
> It does it by a combination of name and OID: the oid is less than the
> last system oid, so it is hidden, except if it is called public.

Hm.  Might I suggest that a better policy (as of 7.3) would be:

1. Schemas (pg_namespace entries) are considered system objects if and
only if their names begin with 'pg_'.

2. For all object types that exist within schemas, it's a system object
if and only if it's within a system schema.

We really want to move away from using OID-range tests for anything...

            regards, tom lane

pgsql-general by date:

Previous
From: Ian Barwick
Date:
Subject: Re: German newspaper with PostgreSQL
Next
From: Tom Lane
Date:
Subject: Re: The old "not using index" question