Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YpjMt-0006h6-US for pgsql-general@arkaria.postgresql.org; Tue, 05 May 2015 20:23:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YpjMs-0006FZ-Ij for pgsql-general@arkaria.postgresql.org; Tue, 05 May 2015 20:23:02 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YpjMm-00065Z-Sz; Tue, 05 May 2015 20:22:57 +0000 Received: from virtual1.potentialtech.com ([69.25.178.43] helo=mail.potentialtech.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1YpjMk-0007z4-8z; Tue, 05 May 2015 20:22:55 +0000 Received: from bill-laptop (pool-98-114-196-190.phlapa.fios.verizon.net [98.114.196.190]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.potentialtech.com (Postfix) with ESMTPSA id 1E94C24BEB8; Tue, 5 May 2015 16:22:53 -0400 (EDT) Date: Tue, 5 May 2015 16:22:51 -0400 From: PT To: Suresh Raja Cc: pgsql-general@postgresql.org, pgsql-sql@postgresql.org Subject: Re: documenting tables version control Message-Id: <20150505162251.76ed18271d7ab31c138189f4@potentialtech.com> In-Reply-To: References: X-Mailer: Sylpheed 3.4.2 (GTK+ 2.24.27; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org On Tue, 5 May 2015 15:13:42 -0500 Suresh Raja wrote: > > > I have tables with different versions in the same schema. Like > T1a, T1b, T1c > T2a, T2b, T2c, T2d > .... > ... > etc. > > > I'm interested in documenting various version of tables, may be in excel > sheet or may be in another schema in the database. I would like to store > information on table name, column names, column order, pry key column etc. > Also is there a way I can reverse engineer from the database itself. > > Let me know if anybody any suggestion or format that they used. I > appreciate all your help and shall be suitably acknowledged. This section of the documentation should tell you everything you need to know: http://www.postgresql.org/docs/9.4/static/information-schema.html -- PT -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general