From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Mike Quinn <mquinn(at)co(dot)merced(dot)ca(dot)us> |
Cc: | PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org> |
Subject: | Re: [BUGS] pg_tables view definition incorrect?? |
Date: | 2003-07-21 15:20:05 |
Message-ID: | 200307211520.h6LFK5b11934@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-patches |
You are correct. Patch attached and applied.
---------------------------------------------------------------------------
Mike Quinn wrote:
> version
> ---------------------------------------------------------------
> 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
> -------------+---------+-----------
> schemaname | name |
> tablename | name |
> tableowner | name |
> hasindexes | boolean |
> hasrules | boolean |
> hastriggers | boolean |
> View definition: SELECT n.nspname AS schemaname, c.relname AS tablename, pg_get_userbyid(c.relowner) AS tableowner, c.relhasindex AS hasindexes, c.relhasrules AS hasrules, (c.reltriggers > 0) AS hastriggers FROM (pg_class c LEFT JOIN pg_namespace n ON ((n.oid = c.relnamespace))) WHERE ((c.relkind = 'r'::"char") OR (c.relkind = 's'::"char"));
>
> Given that 'S' => Sequence and 's' => special shouldn't the last condition in the WHERE clause be:
>
> c.relkind = 'S'::"char"
>
> instead of
>
> c.relkind = 's'::"char"
>
>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
Attachment | Content-Type | Size |
---|---|---|
unknown_filename | text/plain | 878 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Stephan Szabo | 2003-07-21 17:33:46 | Re: deadlock_timeout and pg_ctl reload |
Previous Message | Alex Rodin | 2003-07-21 10:53:28 | PostgreSQL 7.3.3 with pgcrypto on FreeBSD 5.1 |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2003-07-21 20:37:15 | Re: createlang/droplang fix |
Previous Message | Tom Lane | 2003-07-21 13:36:47 | Re: Eliminate information_schema from oid2name listing |