Re: function for testing that causes the backend to terminate

Поиск
Список
Период
Сортировка
От Bharath Rupireddy
Тема Re: function for testing that causes the backend to terminate
Дата
Msg-id CALj2ACUPNBeVc34SV3PeS3Kopv-Zi4M_AKDWKiKc01F_bmQKog@mail.gmail.com
обсуждение исходный текст
Ответ на function for testing that causes the backend to terminate  (Dave Cramer <davecramer@gmail.com>)
Ответы Re: function for testing that causes the backend to terminate  (Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>)
Список pgsql-hackers
On Thu, Apr 29, 2021 at 4:27 PM Dave Cramer <davecramer@gmail.com> wrote:
> For testing unusual situations I'd like to be able to cause a backend to terminate due to something like a segfault.
Dowe currently have this in testing ?
 

Well, you could use pg_terminate_backend which sends SIGTERM to the
backend. However, we don't have a function that sends SIGSEGV yet, you
could signal the backend with SIGSEGV directly, if possible.

With Regards,
Bharath Rupireddy.
EnterpriseDB: http://www.enterprisedb.com



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Dave Cramer
Дата:
Сообщение: function for testing that causes the backend to terminate
Следующее
От: ahsan hadi
Дата:
Сообщение: Re: pg_dump new feature: exporting functions only. Bad or good idea ?