pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: BigSmoke <bigsmoke@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Re: regarding debugging?
Date: 8 Feb 2006 09:36:36 -0800
Message-ID: <1139420196.287763.258060@f14g2000cwb.googlegroups.com> (raw)
References: <ad39daf90601292238k2b1ff604r3aab7822fea0f998@mail.gmail.com>

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/




view thread (4+ messages)

Message-ID: <1139420196.287763.258060@f14g2000cwb.googlegroups.com>
Permalink:  ../1139420196.287763.258060@f14g2000cwb.googlegroups.com/
Also on:    postgresql.org/message-id/1139420196.287763.258060@f14g2000cwb.googlegroups.com

 · 

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: bigsmoke@gmail.com
  Subject: Re: regarding debugging?
  In-Reply-To: <1139420196.287763.258060@f14g2000cwb.googlegroups.com>

* 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