From: | Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Cc: | Ron Peterson <rpeterso(at)mtholyoke(dot)edu>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Subject: | Re: alter column appears to work, but doesn't? |
Date: | 2011-09-05 20:57:33 |
Message-ID: | 201109051357.33577.adrian.klaver@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Monday, September 05, 2011 1:48:58 pm Ron Peterson wrote:
> 2011-09-05_16:14:00-0400 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>:
> > Ron Peterson <rpeterso(at)mtholyoke(dot)edu> writes:
> > > I just dropped my logging rules, stopped the database and restarted it,
> > > put my rules back in place, and now it works. Not sure why. Cached
> > > query plan?
> >
> > Maybe. We'd need a reproducible test case to do more than speculate
> > though.
>
> Hi Tom,
>
> I was able to reproduce this. DDL below. Probably more DDL than
> necessary, but not sure what is or isn't relevant.
>
> postgres=# drop rule attribute_insert_rule on attributes;
> postgres=# drop rule attribute_update_rule on attributes;
> postgres=# drop rule attribute_delete_rule on attributes;
> postgres=# alter table attributes_log alter column attribute_name type
> varchar(50); ...then recreate rules below
> postgres=# insert into attributes values ( repeat( 'x', 49 ) );
> ERROR: value too long for type character varying(48)
>
>
I am not seeing where you change the varchar length in the table attributes.
That is where the error is coming from.
--
Adrian Klaver
adrian(dot)klaver(at)gmail(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Ron Peterson | 2011-09-05 21:01:29 | Re: alter column appears to work, but doesn't? |
Previous Message | Rory Campbell-Lange | 2011-09-05 20:55:01 | Re: UPDATE using query; per-row function calling problem |