Re: function for testing that causes the backend to terminate

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: function for testing that causes the backend to terminate
Дата
Msg-id 0711ce9f-72ed-6544-15ef-c56faaaae11d@joeconway.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
Re: function for testing that causes the backend to terminate
Список pgsql-hackers
On 4/29/21 6:56 AM, Dave Cramer wrote:
> For testing unusual situations I'd like to be able to cause a backend to 
> terminate due to something like a segfault. Do we currently have this in 
> testing ?

If you can run SQL as a superuser from that backend, try:

COPY (SELECT pg_backend_pid())
  TO PROGRAM 'xargs kill -SIGSEGV';

HTH,

Joe

-- 
Crunchy Data - http://crunchydata.com
PostgreSQL Support for Secure Enterprises
Consulting, Training, & Open Source Development



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

Предыдущее
От: Richard Yen
Дата:
Сообщение: Re: Patch to allow pg_filedump to support reading of pg_filenode.map
Следующее
От: Masahiko Sawada
Дата:
Сообщение: Re: Replication slot stats misgivings