Re: pg_stat_user_tables

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: JackpipE <pipe(dot)jack(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pg_stat_user_tables
Date: 2008-03-28 19:41:47
Message-ID: 13896.1206733307@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

JackpipE <pipe(dot)jack(at)gmail(dot)com> writes:
> I'm selecting tables from my db using query:
> SELECT
> pg_stat_user_tables.relname
> FROM
> pg_stat_user_tables
> WHERE
> (pg_stat_user_tables.relname LIKE 'name_hosp_%')

> The problem I have is that the table names returned by this query are
> different from the ones in my db.

That hardly seems likely, since the contents of that view are drawn
directly from pg_class. Maybe you have some old schemas you've
forgotten about?

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Osvaldo Rosario Kussama 2008-03-28 20:08:32 Re: SELECT DISTINCT ON and ORDER BY
Previous Message Craig Ringer 2008-03-28 19:05:15 Re: dunction issue