Re: [GENERAL] [BUGS] pg_tables view definition incorrect??

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: [GENERAL] [BUGS] pg_tables view definition incorrect??
Date: 2003-07-21 22:04:18
Message-ID: 200307212204.h6LM4IL06075@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-patches


OK, sequences removed from pg_tables. Regression updated. Patch
applied.

---------------------------------------------------------------------------

Mike Quinn wrote:
> 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
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" 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 7.3 KB

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2003-07-21 22:42:02 Re: Query regarding back up
Previous Message Bruce Momjian 2003-07-21 21:43:34 Re: Billions of records?

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2003-07-22 00:04:44 Re: patch for Oracle initcap compatibility
Previous Message Bruce Momjian 2003-07-21 21:02:27 Re: fix for new SUSET GUC variables