Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 06BF6632B87 for ; Mon, 21 Jun 2010 15:28:47 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 25549-02 for ; Mon, 21 Jun 2010 18:28:39 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id C389D632B9C for ; Mon, 21 Jun 2010 15:28:39 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id 42790348035; Mon, 21 Jun 2010 11:28:38 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at commandprompt.com Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CHhEzxFGlBKn; Mon, 21 Jun 2010 11:28:36 -0700 (PDT) Received: from perhan.alvh.no-ip.org (190-95-17-80.bk17-dsl.surnet.cl [190.95.17.80]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id BC39B348002; Mon, 21 Jun 2010 11:28:35 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 82A156E83A; Mon, 21 Jun 2010 14:28:33 -0400 (CLT) Content-Type: text/plain; charset=UTF-8 Cc: pgsql-admin Subject: Re: alter column resize triggers question From: Alvaro Herrera To: Mike Broers In-reply-to: References: Date: Mon, 21 Jun 2010 14:28:33 -0400 Message-Id: <1277144881-sup-1782@alvh.no-ip.org> User-Agent: Sup/0.11 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.001 tagged_above=-10 required=5 tests=BAYES_20=-0.001 X-Spam-Level: X-Archive-Number: 201006/134 X-Sequence-Number: 34912 Excerpts from Mike Broers's message of lun jun 21 14:18:01 -0400 2010: > I need to change service_name column to varchar(55), my plan was to backup > the table with pg_dump, then run the below alter statement: > > alter table dim_product alter column service_name type varchar(55); > > But i am worried about the triggers because I believe that the alter table > statement will rewrite the table and I dont want those triggers firing. The triggers won't fire. It'll do you no harm to try it out in a toy table, though. -- Álvaro Herrera The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support