Alter Table from Trigger - Mailing list pgsql-novice

From Tamara Tardif
Subject Alter Table from Trigger
Date
Msg-id CAGpg+FFC_Ysrx3LtEpUK69-ne-2EJbmMvhS1pCehP4s1CZP=4Q@mail.gmail.com
Whole thread Raw
Responses Re: Alter Table from Trigger  ("David G. Johnston" <david.g.johnston@gmail.com>)
List 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


pgsql-novice by date:

Previous
From: Aman Dhaka
Date:
Subject: not able to connect.
Next
From: "David G. Johnston"
Date:
Subject: Re: Alter Table from Trigger