Re: Additional message in pg_terminate_backend

Roman Khapov <rkhapov@yandex-team.ru>

From: Roman Khapov <rkhapov@yandex-team.ru>
To: Daniel Gustafsson <daniel@yesql.se>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2025-12-20T09:26:40Z
Lists: pgsql-hackers

Attachments

> On 17 Dec 2025, at 21:02, Daniel Gustafsson <daniel@yesql.se> wrote:
> 
> Greenplum already has support for passing a message in the terminate command
> doesnt it?  Or at least it used to have but perhaps it was ripped out, my
> memory is getting a bit fuzzy.
> 
> https://github.com/greenplum-db/gpdb-archive/commit/fa6c2d43d675aa05e2d9f797e3008f6fe075ee2c
> 

Well, seems like I missed that patch..

Anyway, now I need same functionality in PostgreSQL, and your patch seems interesting,
especially in part where you keep messages in separated shmem region.

So I adopted your patch, maybe in that form it can be useful for PostgreSQL?