Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-general by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group