pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: Jeff Frost <jeff@frostconsultingllc.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: find all tables with a specific column name?
Date: Fri, 21 Apr 2006 13:03:56 -0500
Message-ID: <20060421180356.GB13275@wolff.to> (raw)
In-Reply-To: <Pine.LNX.4.64.0604210928220.1527@glacier.frostconsultingllc.com>
References: <Pine.LNX.4.64.0604210928220.1527@glacier.frostconsultingllc.com>

On Fri, Apr 21, 2006 at 09:29:33 -0700,
  Jeff Frost <jeff@frostconsultingllc.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



view thread (5+ messages)  latest in thread

Message-ID: <20060421180356.GB13275@wolff.to>
Permalink:  ../20060421180356.GB13275@wolff.to/
Also on:    postgresql.org/message-id/20060421180356.GB13275@wolff.to

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: bruno@wolff.to, jeff@frostconsultingllc.com
  Subject: Re: find all tables with a specific column name?
  In-Reply-To: <20060421180356.GB13275@wolff.to>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox