Alter Table from Trigger

From: Tamara Tardif <tamara(at)ccxtechnologies(dot)com>
To: pgsql-novice(at)lists(dot)postgresql(dot)org
Subject: Alter Table from Trigger
Date: 2020-03-19 16:32:02
Message-ID: CAGpg+FFC_Ysrx3LtEpUK69-ne-2EJbmMvhS1pCehP4s1CZP=4Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hello,

Is altering a table from its own trigger possible? If not, how come?

For context, I am trying to attach a partition to a table using a trigger
on that same table. Here is the error:

ERROR: cannot ALTER TABLE "tablename" because it is being used by active
queries in this session

Any help would be greatly appreciated.

Thanks,
Tamara

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message David G. Johnston 2020-03-19 17:06:23 Re: Alter Table from Trigger
Previous Message Aman Dhaka 2020-03-18 00:59:30 not able to connect.