Re: Receivgin error while altering the table column datatype

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Raghavendra Rao J S V <raghavendrajsv(at)gmail(dot)com>
Cc: "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Receivgin error while altering the table column datatype
Date: 2019-09-25 15:36:23
Message-ID: CAKFQuwaFFvK4_am0czwSS86REnSE367j5muBm+E40f=jy2ei_A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Sep 25, 2019 at 5:08 AM Raghavendra Rao J S V <
raghavendrajsv(at)gmail(dot)com> wrote:

> *Reason:*
>
> *SQL Error [0A000]: ERROR: cannot alter type of a column used in a trigger
> definition Detail: trigger extensiontrigger on table tele depends on
> column "phonenumber"*
>
> Do I need to drop the trigger and alter the table column to modify the
> datatype of the columns. Am I correct?
>

Seems like a reasonable course of action, and simple enough to just
experiment with on a test relation.

> or is there any other way to resolve it.
>

Doubtful

David J.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ron 2019-09-25 15:37:36 Re: Upgrading old server
Previous Message Rob Sargent 2019-09-25 15:04:38 Re: managing primary key conflicts while restoring data to table with existing data