Re: find all tables with a specific column name?

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Jeff Frost <jeff(at)frostconsultingllc(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: find all tables with a specific column name?
Date: 2006-04-21 18:03:56
Message-ID: 20060421180356.GB13275@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Fri, Apr 21, 2006 at 09:29:33 -0700,
Jeff Frost <jeff(at)frostconsultingllc(dot)com> wrote:
> Is there a reasonable way to extract a list of all tables which contain a
> specific column name from the system views on 8.1?
>
> For instance, I might want to enumerate all tables with a column named
> last_modified.

Take a look at:
http://developer.postgresql.org/docs/postgres/infoschema-columns.html
and
http://developer.postgresql.org/docs/postgres/infoschema-schema.html

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Jeff Frost 2006-04-21 18:30:25 Re: find all tables with a specific column name?
Previous Message Jeff Frost 2006-04-21 16:29:33 find all tables with a specific column name?