Re: PGAdmin Version 2.1

From: Melvin Davidson <melvin6925(at)yahoo(dot)com>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: ldrlj1 <russelljanusz(at)masterpeaceltd(dot)com>, pgAdmin Support <pgadmin-support(at)postgresql(dot)org>
Subject: Re: PGAdmin Version 2.1
Date: 2018-01-30 15:22:22
Message-ID: 621990350.3397342.1517325742670@mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

>No - if you switch on "Show system objects", it will display system objects such as row  >types. That's the whole point of the switch (which is off by default). 
Except that "system objects" are NOT USER tables, views, indexes, etc.

They are _system_ catalogs and views;
Your definition is a behavior change from PgAdmin III, which DID NOT show every "system object" per your definition". It only showed USER types as permy query.

Melvin Davidson 🎸
I reserve the right to fantasize.  Whether or not you
wish to share my fantasy is entirely up to you.
www.youtube.com/unusedhero/videos
Folk Alley - All Folk - 24 Hours a day
www.folkalley.com

On Tuesday, January 30, 2018, 10:01:50 AM EST, Dave Page <dpage(at)pgadmin(dot)org> wrote:

On Tue, Jan 30, 2018 at 2:57 PM, Melvin Davidson <melvin6925(at)yahoo(dot)com> wrote:

>Effectively, a composite type that can represent a row in a class

That may be true, but users expect to see "user defined types", not tables and views. As such, the query driving the display should be something like:
WITH types AS
( SELECT reltype
    FROM pg_class
WHERE relkind = 'c'
)
SELECT *
  FROM pg_type
 WHERE oid in (SELECT reltype
                 FROM types)
 ORDER BY typname;

No need to duplicate everything else.

No - if you switch on "Show system objects", it will display system objects such as row types. That's the whole point of the switch (which is off by default). 
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Dave Page 2018-01-30 15:27:55 Re: PGAdmin Version 2.1
Previous Message Dave Page 2018-01-30 15:01:47 Re: PGAdmin Version 2.1