| From: | Ibrar Ahmed <ibrar(dot)ahmad(at)gmail(dot)com> | 
|---|---|
| To: | pgsql-hackers(at)lists(dot)postgresql(dot)org | 
| Cc: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, Filip Rembiałkowski <filip(dot)rembialkowski(at)gmail(dot)com> | 
| Subject: | Re: dropdb --force | 
| Date: | 2019-04-09 10:41:00 | 
| Message-ID: | CALtqXTdnsvGuBZJ=iup5fy5Hwcr2YWf0XHgcb2Kmv3MAZ+8OgQ@mail.gmail.com | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-hackers | 
Yes, I think it is because of this code Snippet
                    if (force_terminate)
                    {
                        /* try to terminate backend */
#ifdef HAVE_SETSID
                            kill(-(proc->pid), SIGTERM);
#else
                            kill(proc->pid, SIGTERM);
On Tue, Apr 9, 2019 at 3:06 PM Ibrar Ahmed <ibrar(dot)ahmad(at)gmail(dot)com> wrote:
>
> Is this the intended behavior? SIGTERM is received.
>
> test=# begin;
> BEGIN
> test=# create table test(a int);
> CREATE TABLE
>
>
> In another terminal drop the database.
>
> test=# begin;
> psql: FATAL:  terminating connection due to administrator command
> server closed the connection unexpectedly
>         This probably means the server terminated abnormally
>         before or while processing the request.
> The connection to the server was lost. Attempting reset: Failed.
> !>
-- 
Ibrar Ahmed
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Eisentraut | 2019-04-09 10:55:22 | Re: PGCOLOR? (Re: pgsql: Unified logging system for command-line programs) | 
| Previous Message | Ibrar Ahmed | 2019-04-09 10:05:31 | Re: dropdb --force |