pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: sector119 <sector119@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14997: Get segmentation fault on select sum(bigint_field)
Date: Wed, 3 Jan 2018 21:52:24 +0200
Message-ID: <4CE7ACCD-2C0E-429A-9CDE-EF1DDCA21985@gmail.com> (raw)
In-Reply-To: <22617.1515007780@sss.pgh.pa.us>
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>

Setting max_parallel_workers to 0  doesn’t help..

eps=# select sum(sum) from ternopil.offices_documents where commit_date BETWEEN '2017-01-01' AND '2017-12-31’;
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 
---------------------------------+---------
 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 янв. 2018 г., в 21:29, Tom Lane <tgl@sss.pgh.pa.us> написал(а):
> 
> sector119 <sector119@gmail.com> writes:
>> How can I disable parallel queries?
> 
> set max_parallel_workers to zero
> 
> 			regards, tom lane





view thread (11+ messages)  latest in thread

Message-ID: <4CE7ACCD-2C0E-429A-9CDE-EF1DDCA21985@gmail.com>
Permalink:  ../4CE7ACCD-2C0E-429A-9CDE-EF1DDCA21985@gmail.com/
Also on:    postgresql.org/message-id/4CE7ACCD-2C0E-429A-9CDE-EF1DDCA21985@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: sector119@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: BUG #14997: Get segmentation fault on select sum(bigint_field)
  In-Reply-To: <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> <4CE7ACCD-2C0E-429A-9CDE-EF1DDCA21985@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox