Re: Finding filenames for tables

From: Andreas Pflug <Andreas(dot)Pflug(at)web(dot)de>
To: Jamie Lawrence <pgsql(at)jal(dot)org>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Finding filenames for tables
Date: 2003-05-13 21:52:29
Message-ID: 3EC1691D.4050604@web.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Jamie Lawrence wrote:

>How do I join pg_class and pg_database to determine OID/tablename
>pairs for a given database? I can't find anything to join on in those
>tables. I'm just grepping output right now, but I'd like to do more
>complicated things in the future, thus my question.
>
>
Jamie,

you don't need to join since pg_class is specific for a database. You
cannot see any classes from a different database in pg_class. In
contrast, pg_database is server-wide mirrored.

Regards,
Andreas

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Jim C. Nasby 2003-05-13 21:55:41 Re: How are null's stored? -- Some numbers
Previous Message scott.marlowe 2003-05-13 20:51:37 Re: PERFORMANCE and SIZE