Alter Table from Trigger

Поиск
Список
Период
Сортировка
От Tamara Tardif
Тема Alter Table from Trigger
Дата
Msg-id CAGpg+FFC_Ysrx3LtEpUK69-ne-2EJbmMvhS1pCehP4s1CZP=4Q@mail.gmail.com
обсуждение исходный текст
Ответы Re: Alter Table from Trigger  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Aman Dhaka
Дата:
Сообщение: not able to connect.
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: Alter Table from Trigger