Re: PostgreSQL in Windows console and Ctrl-C

From: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Christian Ullrich <chris(at)chrullrich(dot)net>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: PostgreSQL in Windows console and Ctrl-C
Date: 2014-04-15 04:06:44
Message-ID: CAA4eK1LbWnwnE2EOx3YgQQPjpnZpvv2NXc+bkYmi38is9A_XuQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Apr 15, 2014 at 4:21 AM, Bruce Momjian <bruce(at)momjian(dot)us> wrote:
> On Mon, Apr 14, 2014 at 09:34:14AM +0530, Amit Kapila wrote:
>> The problem can be solved this way, but the only question here is whether
>> it is acceptable for users to have a new console window for server.
>>
>> Can others also please share their opinion if this fix (start server in new
>> console) seems acceptable or shall we try by passing some information
>> from pg_ctl and then ignore CTRL+C && CTRL+BREAK for it?
>
> I wanted to point out that I think this patch is only appropriate for
> head, not backpatching. Also, on Unix we have to handle signals that
> come from the kill command. Can you send CTRL+C from other
> applications on Windows?

I think there are ways to achieve it, but might not be very straightforward.
If we start server in new console window through pg_ctl, then we *don't*
need to change any signal handler to catch and do something specific
for CTRL+C/CTRL+BREAK.

With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2014-04-15 04:33:21 Re: Dynamic Shared Memory stuff
Previous Message Amit Kapila 2014-04-15 03:10:10 Re: PostgreSQL in Windows console and Ctrl-C