pggrok -- code to introspect the postgres database and compare database schemas Copyright (C) 2004-2005 Karl Lehenbauer freely redistributable under the Berkeley license as long as this copyright is maintained. $Id$ programs: tclsh8.4 dump.tcl oldDbString >olddb.out tclsh8.4 dump.tcl newDbString >newdb.out tclsh8.4 compare.tcl olddb.out newdb.out pggrok package: ::pggrok::tables $conn Return a list of the names of all the tables in the database. ::pggrok::schema $conn Return a list of the names of all the schema in the database ::pggrok::users $conn Return a list of the names of all the users in the database ::pggrok::views $conn Return a list of the names of all the views in the datbase ::pggrok::attributes $conn tableName arrayName codeBody Populate the array with information about each field of the table, in turn, executing the code body. ::pggrok::indices $conn tableName arrayName codeBody Populate the array with information about each index of the table, in turn, executing the code body. ::pggrok::dump $conn Dump the names of the tables, schema, users and views to stdout.