Re: PostgreSQL in Windows console and Ctrl-C - Mailing list pgsql-hackers

From Christian Ullrich
Subject Re: PostgreSQL in Windows console and Ctrl-C
Date
Msg-id lj11vd$9rf$1@ger.gmane.org
Whole thread Raw
In response to Re: PostgreSQL in Windows console and Ctrl-C  (Amit Kapila <amit.kapila16@gmail.com>)
Responses Re: PostgreSQL in Windows console and Ctrl-C  ("MauMau" <maumau307@gmail.com>)
List pgsql-hackers
OK, here is the first draft against current master. It builds on Windows 
with VS 2012 and on FreeBSD 10 with clang 3.3. I ran the regression 
tests on Windows, they all pass.

The changed behavior is limited to Windows, where it now silently 
ignores Ctrl-C and Ctrl-Break when started via pg_ctl start.

I don't think there is currently any support for switch-type long 
options, so rather than invent my own, I squeezed the two lines I added 
into postmaster.c where they fit best; unfortunately, the result is 
quite ugly. I'll be happy to refine that if someone can give me a hint 
on how to do it.

Patch attached, will add to CF soon.

-- 
Christian


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: DISCARD ALL (Again)
Next
From: Tom Lane
Date:
Subject: Re: Composite Datums containing toasted fields are a bad idea(?)