Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gWa2F-0004q8-PR for pgsql-general@arkaria.postgresql.org; Tue, 11 Dec 2018 04:52:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gWa2D-0002Qa-8p for pgsql-general@arkaria.postgresql.org; Tue, 11 Dec 2018 04:52:41 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1gWa2C-0002QT-U1 for pgsql-general@lists.postgresql.org; Tue, 11 Dec 2018 04:52:41 +0000 Received: from mail-oi1-x244.google.com ([2607:f8b0:4864:20::244]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gWa29-0006fi-JJ for pgsql-general@lists.postgresql.org; Tue, 11 Dec 2018 04:52:40 +0000 Received: by mail-oi1-x244.google.com with SMTP id x202so10971223oif.13 for ; Mon, 10 Dec 2018 20:52:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=TxSUJ7xNlkg6NBfydI4PqVXgLWEN0OxmlVEA5NWayJ4=; b=FSbiOohdtOhAfG5usgJkTQOgybvaPPqHZeTibZ2ZIDUjSEU37/Xbtzz5zJIXSg/myr kOvND0OTsrsVBkRcekB+BkOZORMMwIglxIv2OM1bYiEnESTo2CiOWZmpphXSlaGDbCZ4 P1SqpceLMYINgs1P2AMmRgmCxprLfAdgzBBZR9X1exAvQ+9eAC6mrqVdTCoTnO6OxNdi SgXNV1ZnrpDsIubU25AlLzOPphS9M08Wx+jFLsZ3ca+Cg56p16EyKuoxDJilIatHUyPx pq/blb3zdIFMqy8c8pfzFV03s/uRyGaZXBHsxTwWfbZ1s849yPCUDAe0n2ajn2JkaaTI M1ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=TxSUJ7xNlkg6NBfydI4PqVXgLWEN0OxmlVEA5NWayJ4=; b=CBjWx4acdfxLvtHNmqW7gdfpIREQlbgsUxW/09wQ3Y+2t9ks1GpZfu8Gwo/lo6CzuX XZkAojzGPILBJe9k8RxeKoubmKPdm7A9Jzokv81IuW/ubF2ui2Pfw6v2ksNk1Arcfjm6 aAPnyKZcpwHAxvvlNXv2IF3oVD3eG+JH6BO+9b3ygMpBHuzTwB7EyEvxG+LB1hlKRrnJ XV/Rddvw4dmrLKXMSw06FH+3bzbM19R0o3MB2gb5GSoDtJhFr8JXK5wP2lvcX2SnFQYJ iiwLRs+LgJ2szCWRb+LJQTjypckN/5rSjhFn21dllyJ++a6vyBfljn1wpkE7OBslYCtg OaaQ== X-Gm-Message-State: AA+aEWbaS6LMFdgQJZScvbsvSqdbrDiJqwjNL6/9jAYiwDRhqMmii5e9 AFevC+lkuSAFe7NIfXKMi2krwmQJ X-Google-Smtp-Source: AFSGD/VNn/s4ixWRvU0REh9r6BPTZN3nEzkVioyDEyuBd/XegD+R8K4DYgvOWG/I91CvSzFM8HfdjA== X-Received: by 2002:aca:4489:: with SMTP id r131mr491271oia.296.1544503955224; Mon, 10 Dec 2018 20:52:35 -0800 (PST) Received: from [192.168.1.10] (ip70-171-116-89.no.no.cox.net. [70.171.116.89]) by smtp.googlemail.com with ESMTPSA id c9sm5946288otp.24.2018.12.10.20.52.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Dec 2018 20:52:34 -0800 (PST) Subject: Re: What is the tuplestore? To: pgsql-general References: <5d3fb55c-cb31-d9dd-6f4f-9b14c1a28832@gmail.com> <9b532e54-240e-3e0e-550f-96b8080eac50@gmail.com> <3348b13c-f6d7-fcb4-43af-3bc7c456d53d@gmail.com> From: Ron Message-ID: <34798dc7-6f07-5628-5201-c2108729c0aa@gmail.com> Date: Mon, 10 Dec 2018 22:52:33 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------9FB8CECED4F56264E2254ABC" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------9FB8CECED4F56264E2254ABC Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit I extracted the queries from pg_log and sent them to the customer team.  To fill up 96GB of disk space seems like the customer selected a huge date range. On 12/10/2018 06:07 PM, Rene Romero Benavides wrote: > Yes, pgsql_tmp, you ought to be looking for a sudden and drastic jump in > space utilization around the time of the error message. You're not > concerned with the current space utilization, but with the one around that > time, because, it probably got freed right after the error was raised. > How many times has this happened ? what kind of queries were running at > that time? can you identify something that could have required lots of > temporary space? > > Am Mo., 10. Dez. 2018 um 17:33 Uhr schrieb Ron >: > > Which file system (specifically, which directory)?  Is it > data/base/pgsql_tmp?  There's 96GB free, which is 74% of the volume. > > On 12/10/2018 04:50 PM, Rene Romero Benavides wrote: >> Maybe the temp space got released right after the failure? >> https://grokbase.com/t/postgresql/pgsql-general/02ag7k8gcr/tuplestore-write-failed >> do you have space usage charts for that partition? doesn't it show a >> spike during that time? >> >> Am Mo., 10. Dez. 2018 um 15:54 Uhr schrieb Ron >> >: >> >> There's certainly a problem with the application, but the error >> is in the pg_log, not the application log. >> >> On 12/10/2018 03:21 PM, Rene Romero Benavides wrote: >>> What if this error message pertains to something happening on >>> the application side? >>> >>> Am Mo., 10. Dez. 2018 um 09:56 Uhr schrieb Ron >>> >: >>> >>> Hi, >>> >>> v9.6.6 >>> >>> >>> 2018-12-07 06:21:55.504 EST 10.140.181.89(35868) CDS CDSLBXW >>> 13748 SELECT >>> PostgreSQL JDBC Driver 53100 ERROR:  could not write to >>> tuplestore temporary >>> file: No space left on device >>> >>> I see this in the pg_log file, but #1 can't figure out what >>> "tuplestore" is >>> (Google doesn't help), and #2 there's lots of space on all >>> my file systems. >>> data/base, where pgsql_tmp lives, has 96GB free.) >>> >>> Thanks >>> >> > > -- > Angular momentum makes the world go 'round. > > > > -- > El genio es 1% inspiración y 99% transpiración. > Thomas Alva Edison > http://pglearn.blogspot.mx/ > -- Angular momentum makes the world go 'round. --------------9FB8CECED4F56264E2254ABC Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit I extracted the queries from pg_log and sent them to the customer team.  To fill up 96GB of disk space seems like the customer selected a huge date range.

On 12/10/2018 06:07 PM, Rene Romero Benavides wrote:
Yes, pgsql_tmp, you ought to be looking for a sudden and drastic jump in space utilization around the time of the error message. You're not concerned with the current space utilization, but with the one around that time, because, it probably got freed right after the error was raised.
How many times has this happened ? what kind of queries were running at that time? can you identify something that could have required lots of temporary space?

Am Mo., 10. Dez. 2018 um 17:33 Uhr schrieb Ron <ronljohnsonjr@gmail.com>:
Which file system (specifically, which directory)?  Is it data/base/pgsql_tmp?  There's 96GB free, which is 74% of the volume.

On 12/10/2018 04:50 PM, Rene Romero Benavides wrote:
Maybe the temp space got released right after the failure?
do you have space usage charts for that partition? doesn't it show a spike during that time?

Am Mo., 10. Dez. 2018 um 15:54 Uhr schrieb Ron <ronljohnsonjr@gmail.com>:
There's certainly a problem with the application, but the error is in the pg_log, not the application log.

On 12/10/2018 03:21 PM, Rene Romero Benavides wrote:
What if this error message pertains to something happening on the application side? 

Am Mo., 10. Dez. 2018 um 09:56 Uhr schrieb Ron <ronljohnsonjr@gmail.com>:
Hi,

v9.6.6


2018-12-07 06:21:55.504 EST 10.140.181.89(35868) CDS CDSLBXW 13748 SELECT
PostgreSQL JDBC Driver 53100 ERROR:  could not write to tuplestore temporary
file: No space left on device

I see this in the pg_log file, but #1 can't figure out what "tuplestore" is
(Google doesn't help), and #2 there's lots of space on all my file systems. 
data/base, where pgsql_tmp lives, has 96GB free.)

Thanks



--
Angular momentum makes the world go 'round.


--
El genio es 1% inspiración y 99% transpiración.
Thomas Alva Edison
http://pglearn.blogspot.mx/


--
Angular momentum makes the world go 'round.
--------------9FB8CECED4F56264E2254ABC--