Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eWpTE-0007xG-U2 for pgsql-bugs@arkaria.postgresql.org; Wed, 03 Jan 2018 20:17:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eWpTE-0007lk-Iz for pgsql-bugs@arkaria.postgresql.org; Wed, 03 Jan 2018 20:17:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eWp5S-000148-Ra for pgsql-bugs@lists.postgresql.org; Wed, 03 Jan 2018 19:52:30 +0000 Received: from mail-wr0-x22c.google.com ([2a00:1450:400c:c0c::22c]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eWp5Q-0006Mp-ME for pgsql-bugs@postgresql.org; Wed, 03 Jan 2018 19:52:30 +0000 Received: by mail-wr0-x22c.google.com with SMTP id i6so210432wrf.3 for ; Wed, 03 Jan 2018 11:52:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Gqu0UD9q2Ph6Q3EDV5zfkHbpJRrmm4EKSvTl1XEIWJ8=; b=KBiXb7ER6+iY9QJwbUVlyNmNhGdKNrx+FyWLoA+UoNGfwoB1SCo+x6hpPRg/S2/P3g dxWr/u0arxz8X4/U2VkzwmhYATPZlb3lavDcEa/PYQrBf8YWfeftRMjxdwHChPqWokHF qYBQuYyoeOr5Eo1Eo0n8pSBEJ3XDDfD6dEDOacGDGqiODTEsBtJJXJYkTG23TKSMuLJN UmTL4CqmtJKAm9TXJhOzHijTqC+bldC+m7FM56wapXFoOg0hLiBT4Q+K4hhyvE3oc0k3 sRspKPOFSfiZR5ZrnmcjJq0CFImQPMawlj+St+e8qX5ChTmjYsl6Cw8rVj+lGFaFxCe2 k5LQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Gqu0UD9q2Ph6Q3EDV5zfkHbpJRrmm4EKSvTl1XEIWJ8=; b=DCeKOm9C/r+vUy7T9+8XF0F0XvX6RbtQkKGBd0T9qBOK6jEmb7OEYYgVlOkOX2kt/H mQHFefPZaNnfiJCyuQCgjhUvA0qbxrOanfwSE1P8s1J30BKWtzJIq+y8LvKjrdPQGj9v 6mmzWBEl+zzM1rEBkcfVunQY2erzMYgK/Qro8w0RO3rpu7zJQSSq3qahVIyh4ZV2XdRP nfrpKtUZOImo4LrnI+EiOOQr0pJb/TPrOP+OHy4x/wtCW76nhoiOW8hlmH0PO2faIsI9 700DAlAI3/+A6vkhpcdk6APEZ9G2eVrovz4lF8PAKyXbKvqZHxgUnpS+PsHfCYVVSpit iDOw== X-Gm-Message-State: AKGB3mL18a/GZfSllpN6Dj+o9wRl4fQQPOT9An5afHvQ02bfm400ldOq eh471qeTFlSnuE4a5wK2/wl7Z+Vw X-Google-Smtp-Source: ACJfBouS/C/qXKxnU5YfGJ5lh8v+IlBPaNlU2AK/2HgEjsnzxfQ199kRpnXl6PAZR2txieMwnsJ+7w== X-Received: by 10.25.215.213 with SMTP id q82mr1512633lfi.119.1515009146805; Wed, 03 Jan 2018 11:52:26 -0800 (PST) Received: from [192.168.2.187] (host-5-58-88-133.la.net.ua. [5.58.88.133]) by smtp.gmail.com with ESMTPSA id b25sm305114lje.14.2018.01.03.11.52.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Jan 2018 11:52:25 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Subject: Re: BUG #14997: Get segmentation fault on select sum(bigint_field) From: sector119 In-Reply-To: <22617.1515007780@sss.pgh.pa.us> Date: Wed, 3 Jan 2018 21:52:24 +0200 Cc: pgsql-bugs@postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <4CE7ACCD-2C0E-429A-9CDE-EF1DDCA21985@gmail.com> References: <20180103121632.10221.98596@wrigleys.postgresql.org> <11865.1514992122@sss.pgh.pa.us> <5B5766CB-1F5C-49E6-8A07-D8ADE08C00F6@gmail.com> <22617.1515007780@sss.pgh.pa.us> To: Tom Lane X-Mailer: Apple Mail (2.3445.5.20) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Setting max_parallel_workers to 0 doesn=E2=80=99t help.. eps=3D# select sum(sum) from ternopil.offices_documents where = commit_date BETWEEN '2017-01-01' AND '2017-12-31=E2=80=99; 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. name | setting=20 ---------------------------------+--------- max_parallel_workers | 0 max_parallel_workers_per_gather | 2 postgresql.log: 2018-01-03 21:50:05 EET LOG: server process (PID 26702) was terminated = by signal 11: Segmentation fault 2018-01-03 21:50:05 EET DETAIL: Failed process was running: select = sum(sum) from ternopil.offices_documents where commit_date BETWEEN = '2017-01-01' AND '2017-12-31'; 2018-01-03 21:50:05 EET LOG: terminating any other active server = processes 2018-01-03 21:50:05 EET WARNING: terminating connection because of = crash of another server process 2018-01-03 21:50:05 EET DETAIL: The postmaster has commanded this = server process to roll back the current transaction and exit, because = another server process exited abnormally and possibly corrupted shared = memory. 2018-01-03 21:50:05 EET HINT: In a moment you should be able to = reconnect to the database and repeat your command. 2018-01-03 21:50:05 EET WARNING: terminating connection because of = crash of another server process 2018-01-03 21:50:05 EET DETAIL: The postmaster has commanded this = server process to roll back the current transaction and exit, because = another server process exited abnormally and possibly corrupted shared = memory. 2018-01-03 21:50:05 EET HINT: In a moment you should be able to = reconnect to the database and repeat your command. 2018-01-03 21:50:05 EET FATAL: the database system is in recovery mode 2018-01-03 21:50:05 EET LOG: archiver process (PID 26675) exited with = exit code 1 2018-01-03 21:50:05 EET LOG: all server processes terminated; = reinitializing 2018-01-03 21:50:05 EET LOG: database system was interrupted; last = known up at 2018-01-03 21:48:27 EET 2018-01-03 21:50:05 EET FATAL: the database system is in recovery mode 2018-01-03 21:50:05 EET FATAL: the database system is in recovery mode 2018-01-03 21:50:05 EET LOG: database system was not properly shut = down; automatic recovery in progress 2018-01-03 21:50:05 EET LOG: redo starts at 6D/8E002220 2018-01-03 21:50:05 EET LOG: invalid record length at 6D/8E004270: = wanted 24, got 0 2018-01-03 21:50:05 EET LOG: redo done at 6D/8E004238 2018-01-03 21:50:05 EET LOG: database system is ready to accept = connections > 3 =D1=8F=D0=BD=D0=B2. 2018 =D0=B3., =D0=B2 21:29, Tom Lane = =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB(=D0=B0): >=20 > sector119 writes: >> How can I disable parallel queries? >=20 > set max_parallel_workers to zero >=20 > regards, tom lane