X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 633269DCBD2 for ; Wed, 8 Feb 2006 13:36:45 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 97447-09 for ; Wed, 8 Feb 2006 13:36:44 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from floppy.pyrenet.fr (floppy.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id D1B9F9DCA6E for ; Wed, 8 Feb 2006 13:36:42 -0400 (AST) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id 8C5353093D; Wed, 8 Feb 2006 18:36:42 +0100 (MET) From: "BigSmoke" X-Newsgroups: pgsql.sql Subject: Re: regarding debugging? Date: 8 Feb 2006 09:36:36 -0800 Organization: http://groups.google.com Lines: 16 Message-ID: <1139420196.287763.258060@f14g2000cwb.googlegroups.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Complaints-To: groups-abuse@google.com User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: f14g2000cwb.googlegroups.com; posting-host=212.204.130.113; posting-account=0WN9Mw0AAAChM4mno36wWr-RrABvnbDI To: pgsql-sql@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.12 required=5 tests=[AWL=0.120] X-Spam-Score: 0.12 X-Spam-Level: X-Archive-Number: 200602/77 X-Sequence-Number: 24087 Checking how your PgSQL statements are executed, can be done using EXPLAIN [1]. EXPLAIN ANALYZE will also execute (but not dry-run!) your statement. I work with a seperate development and production database. Once the changes to the schema in the development DB are done, I commit them to the production DB using ActiveRecord migrations. You could do the same with an advanced schema diff tool such as pgdiff [2] or zongle [3]. - Rowan [1] http://www.postgresql.org/docs/current/interactive/sql-explain.html [2] http://pgdiff.sourceforge.net/ [3] http://zongle.sourceforge.net/