Re: function for testing that causes the backend to terminate

From: Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com>
To: Dave Cramer <davecramer(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: function for testing that causes the backend to terminate
Date: 2021-04-29 11:06:55
Message-ID: CALj2ACUPNBeVc34SV3PeS3Kopv-Zi4M_AKDWKiKc01F_bmQKog@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Apr 29, 2021 at 4:27 PM Dave Cramer <davecramer(at)gmail(dot)com> 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 ?

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message ahsan hadi 2021-04-29 11:46:48 Re: pg_dump new feature: exporting functions only. Bad or good idea ?
Previous Message Dave Cramer 2021-04-29 10:56:44 function for testing that causes the backend to terminate