pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@commandprompt.com>
To: Mike Broers <mbroers@gmail.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: alter column resize triggers question
Date: Mon, 21 Jun 2010 14:28:33 -0400
Message-ID: <1277144881-sup-1782@alvh.no-ip.org> (raw)
In-Reply-To: <AANLkTikypY0RTsC0bNzx4c2tzeogj2bgthZggmSiOapd@mail.gmail.com>
References: <AANLkTikypY0RTsC0bNzx4c2tzeogj2bgthZggmSiOapd@mail.gmail.com>

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 <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support



view thread (3+ messages)  latest in thread

Message-ID: <1277144881-sup-1782@alvh.no-ip.org>
Permalink:  ../1277144881-sup-1782@alvh.no-ip.org/
Also on:    postgresql.org/message-id/1277144881-sup-1782@alvh.no-ip.org

 · 

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-admin@postgresql.org
  Cc: alvherre@commandprompt.com, mbroers@gmail.com
  Subject: Re: alter column resize triggers question
  In-Reply-To: <1277144881-sup-1782@alvh.no-ip.org>

* 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