Re: insert performance for win32 - Mailing list pgsql-hackers

From Merlin Moncure
Subject Re: insert performance for win32
Date
Msg-id 6EE64EF3AB31D5448D0007DD34EEB3417DD7D6@Herge.rcsinc.local
Whole thread Raw
Responses Re: insert performance for win32
List pgsql-hackers
>   void
>   setup_cancel_handler(void)
>   {
> +    static bool done = false;
> +
> +    if (!done)
>           SetConsoleCtrlHandler(consoleHandler, TRUE);
> +    done = true;
>   }
>

That works, I tried ctrl-c various ways including from within \i copy.
Problem solved!

Merlin


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Constraint exclusion description bug?
Next
From: mark@mark.mielke.cc
Date:
Subject: Re: Reducing the overhead of NUMERIC data