dbTalk Databases Forums  

[BUGS] pg_tables view definition incorrect??

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] pg_tables view definition incorrect?? in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mike Quinn
 
Posts: n/a

Default [BUGS] pg_tables view definition incorrect?? - 07-09-2003 , 10:55 PM






version=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
---------------------------------------------------------------
PostgreSQL 7.3.2 on i586-pc-linux-gnu, compiled by GCC 2.95.3
(1 row)

View "pg_catalog.pg_tables"
Column | Type | Modifiers=20
-------------+---------+-----------
schemaname | name |=20
tablename | name |=20
tableowner | name |=20
hasindexes | boolean |=20
hasrules | boolean |=20
hastriggers | boolean |=20
View definition: SELECT n.nspname AS schemaname, c.relname AS tablename, pg=
_get_userbyid(c.relowner) AS tableowner, c.relhasindex AS hasindexes, c.rel=
hasrules AS hasrules, (c.reltriggers > 0) AS hastriggers FROM (pg_class c L=
EFT JOIN pg_namespace n ON ((n.oid =3D c.relnamespace))) WHERE ((c.relkind =
=3D 'r'::"char") OR (c.relkind =3D 's'::"char"));

Given that 'S' =3D> Sequence and 's' =3D> special shouldn't the last condit=
ion in the WHERE clause be:

c.relkind =3D 'S'::"char"

instead of

c.relkind =3D 's'::"char"





---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo (AT) postgresql (DOT) org

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.