pg_stat_user_tables

From: JackpipE <pipe(dot)jack(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: pg_stat_user_tables
Date: 2008-03-28 15:33:44
Message-ID: 7c1deb9d-87c4-4076-b611-12d0fb15ac19@z38g2000hsc.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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. Not all of them but 10%-20%. The
common problem I noticed is adding "_" at the end of table name and
truncating name "hospital" to "hosp".
Anyone ever had similar problem? Any other way to get list of table
names?

Thanks,
JP

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2008-03-28 15:37:00 Re: Using tables in other PostGreSQL database
Previous Message Felipe de Jesús Molina Bravo 2008-03-28 15:32:45 Re: Persistent user-defined functions