Re: [BUGS] pg_tables view definition incorrect??

From: "Mike Quinn" <mquinn(at)co(dot)merced(dot)ca(dot)us>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Re: [BUGS] pg_tables view definition incorrect??
Date: 2003-07-15 15:21:58
Message-ID: sf13b9aa.041@dp_mail.co.merced.ca.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-patches

The inclusion of the relkind='s' made me think that something other than tables
were to be included as well. I don't see any problem with the original intention
of returning only tables. The view now is operating "almost" as designed. It does
return "pg_xactlock" which is a special relation. The relkind='s' should be removed
in order to conform with the intention.

Mike Quinn

>>> Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> 7/10/03 8:24:43 AM >>>
"Mike Quinn" <mquinn(at)co(dot)merced(dot)ca(dot)us> writes:
> Given that 'S' => Sequence and 's' => special shouldn't the last condition in the WHERE clause be:
> c.relkind = 'S'::"char"

Only if you suppose that pg_tables should show sequences, which was not
the intention. (I'm not real sure why 's' relations are listed, since
they're not really tables either, but the view is operating as
designed.)

I'm prepared to listen to an argument that pg_tables should show
sequences, but that's a definition change not a bug fix. Want to
bring it up on -general or -hackers?

regards, tom lane

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Francois Suter 2003-07-15 15:44:43 Re: Are you frustrated with PostgreSQL
Previous Message Tom Lane 2003-07-15 15:07:36 Re: IPv4 addresses, unsigned integers, space

Browse pgsql-patches by date

  From Date Subject
Next Message Larry Rosenman 2003-07-15 20:28:10 Re: PERL (fwd)
Previous Message Wang Mike 2003-07-15 13:25:19 clock_timestamp() and transcation_timestamp() patch