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 1h8ZfZ-000516-Ud for pgsql-general@arkaria.postgresql.org; Tue, 26 Mar 2019 00:10:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h8ZfX-0003Vl-PZ for pgsql-general@arkaria.postgresql.org; Tue, 26 Mar 2019 00:10:19 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h8ZfX-0003Ve-7E for pgsql-general@lists.postgresql.org; Tue, 26 Mar 2019 00:10:19 +0000 Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h8ZfQ-0008NF-Ie for pgsql-general@postgresql.org; Tue, 26 Mar 2019 00:10:18 +0000 Received: by mail-pg1-x52e.google.com with SMTP id z9so1068224pgu.10 for ; Mon, 25 Mar 2019 17:10:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:message-id:date:to; bh=DflpnrPPqr/G1AnakIUg1JOBjlnNORWU/MiNysjI8FE=; b=ZbdZDNmppRdEg6BC7h3AiZ8dA1k6XmY3gCP+AF++sGyU/JkzUuo1ZHlLKZRTNvqbyH AzqC7/6DMUvuYOO3ZClmQ8YcIYY0g5gju9YICkcamEslbQ4usqmT4vMvU61stiOu4dBv KX7I/NeYxatWczxbY4gToAwFO1Wky09DoILYgEem2wrqcDe03KtWbenqQG4827wz9HmY 2E7V3wBfPwxhzQVWf7xKty5v+d0WxjpVbWE8R5EUJxzKtpMULOacKcrytiCnXSgXjRjN Cj0y1I7sA1rEHmKf8VqGH6GG/3kKBJohc6RuY6FsQXmP4/2WWFPga9USAmzBQHUaijuk H05A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:message-id:date:to; bh=DflpnrPPqr/G1AnakIUg1JOBjlnNORWU/MiNysjI8FE=; b=QrokV8nV5kWs+vXSmzs0wceaMkqEfOICW+nc7styLwPYDTNbbWYpNLODVIYiKh8U04 70gSnH6cyWPTHtTFPcfNNmsAENicISK5xJpdlh+WG8hsIQQjZ8vmsQFUurLZjDcXO3Nl wNCw4Kf/MV0yA41zOB9a8c2kJTMEBegZGo8Fh/e1CZQ9/luTp30L1VmKUyt2yGGlU+bP QB8+URzfGtv9gFBf45IMXvz3D3UclS4mXGTH2SNfFOmdnEqD9qGoiWs58A6uoYFLMmCY olO4Ql3O485MDFcX8s8fnw2Q+XlC6sEEa0mvpwsPLKr60fIac3TqWd4OaUqAkHzDrFbH AotA== X-Gm-Message-State: APjAAAW+CKKK+jAuoIbv3PgQ3okMv4BoVjOb43q6YhT9zIo0LLmbJbJB E/0dpkHdfR2AraVSPzM2P98ZaYsj X-Google-Smtp-Source: APXvYqyX9co2Z8W7tNXNlUcwgAh4o/RHo1ruRMDGz9EgBQLk57ldlrY9YJVwq/fNQmapI89LxbUqYA== X-Received: by 2002:aa7:8059:: with SMTP id y25mr26181478pfm.74.1553559010677; Mon, 25 Mar 2019 17:10:10 -0700 (PDT) Received: from kitselas.hci.utah.edu ([155.100.47.6]) by smtp.gmail.com with ESMTPSA id c130sm24912112pfb.145.2019.03.25.17.10.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Mar 2019 17:10:10 -0700 (PDT) From: Rob Sargent Content-Type: multipart/alternative; boundary="Apple-Mail=_712C5B1F-E30D-433F-A87E-733605201B64" Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: stale WAL files? Message-Id: <10FF70E2-9F70-4469-A4F4-4081988F0204@gmail.com> Date: Mon, 25 Mar 2019 18:10:09 -0600 To: Forums postgresql X-Mailer: Apple Mail (2.3445.102.3) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail=_712C5B1F-E30D-433F-A87E-733605201B64 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 PG10.7, Centos7 On Mar15 we filled our default tablespace/WAL partition. Cleaned up = some old dumps and restarted. pg_wal had apparently exploded but = cleaned itself up by the next day. On Mar16 I ran CHECKPOINT in all = databases on that server (except template0). All seems fine except for = 271 WALs from MAR16 going nowhere fast. Of course we see transient WALS = come and go every day. We did a restart of the server last Friday = (Mar22) without issue. -rw-------. 1 postgres postgres 16777216 Mar 16 16:32 = 0000000100000CE9000000DD ...(269 others) -rw-------. 1 postgres postgres 16777216 Mar 16 17:01 = 0000000100000CEA000000E9 What=E2=80=99s keeping these alive. Or can they be deleted? Any normal = admin routine likely to clean these up? One of our crew was apparently trying to create a function: he had a = run-away json query which caused memory grief but I don=E2=80=99t see = that reflected anywhere in the log. The log file for that day goes south = as follows. =20 [1]2019-03-15 12:09:15.230 MDT [29189] STATEMENT: select count(*) from = sui.probancset_group_member where group_id =3D '4ce6a94d-bb2d-\ 43c2-a1f9-7b68f1618cd4'; [2]2019-03-15 17:07:30.818 MDT [35020] ERROR: could not write to = hash-join temporary file: No space left on device [3]2019-03-15 17:07:30.818 MDT [35020] STATEMENT: update segment as s = set events_less =3D s.events_less + b.events_less, events_equal\ =3D s.events_equal + b.events_equal, events_greater =3D = s.events_greater + b.events_greater, threshold_events =3D = s.threshold_events +\ b.threshold_events from = bulk."bc_1819_17_fd6dbc1e_57e5_4d49_b896_59d6687c8ee6" as b where = s.markerset_id =3D '8d723d2f-1281-48c5-9\ 016-2dab3f4d242b' and s.probandset_id =3D b.probandset_id and = s.markerset_id =3D b.markerset_id and s.startbase =3D b.startbase and = s.e\ ndbase =3D b.endbase and s.probandset_id >=3D = '90000000-0000-0000-0000-000000000000' and s.probandset_id < = 'a0000000-0000-0000-0000-\ 000000000000' 2019-03-15 17:07:30.818 MDT [317161] PANIC: could not write to file = "pg_wal/xlogtemp.317161": No space left on device [4]2019-03-15 17:08:19.231 MDT [35166] ERROR: unterminated = dollar-quoted string at or near "$$ begin --new probandset_group record insert into probandset_group(id,name) select = uuid_generate_v4(),'1808_p3c2n4'; --create necessary new probandset and = probandset_group_member records select addprobandset(a.name, people, groupname) from (select powerset((select array_agg(name order by = name) lst from base.person where name in (superset))) as name except (select = regexp_split_to_array(p.name,',') from probandset p )) a where array_length(a.name,1)>1; --update superset field for new probandset_group update probandset_group set proband_superset_id =3D = (select id from probandset where name =3D superset); end; [1] Last reported normal operation [2] death knell [3] First failed operation from our application [4] continued effort from create function work =20 Thanks in advance. --Apple-Mail=_712C5B1F-E30D-433F-A87E-733605201B64 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
PG10.7, Centos7

On Mar15 we filled our default = tablespace/WAL partition.  Cleaned up some old dumps and restarted. =  pg_wal had apparently exploded but cleaned itself up by the next = day. On Mar16 I ran CHECKPOINT in all databases on that server (except = template0).  All seems fine except for 271 WALs from MAR16 going = nowhere fast.  Of course we see transient WALS come and go every = day.  We did a restart of the server last Friday (Mar22) without = issue.

-rw-------. 1 postgres postgres 16777216 Mar 16 16:32 = 0000000100000CE9000000DD
 ...(269 others)
-rw-------. 1 postgres postgres 16777216 Mar 16 17:01 = 0000000100000CEA000000E9

What=E2=80= =99s keeping these alive.  Or can they be deleted? Any normal admin = routine likely to clean these up?


One of our crew was apparently trying to create a function: = he had a run-away json query which caused memory grief but I don=E2=80=99t= see that reflected anywhere in the log. The log file for that day goes = south as follows.  

[1]2019-03-15 12:09:15.230 MDT [29189] STATEMENT:  = select count(*) from sui.probancset_group_member where group_id =3D = '4ce6a94d-bb2d-\
43c2-a1f9-7b68f1618cd4';
[2]2019-03-15 17:07:30.818 MDT [35020] ERROR:  could not = write to hash-join temporary file: No space left on = device
[3]2019-03-15 17:07:30.818 MDT [35020] = STATEMENT:  update segment as s set events_less =3D s.events_less + = b.events_less, events_equal\
 =3D= s.events_equal + b.events_equal, events_greater =3D s.events_greater + = b.events_greater, threshold_events =3D s.threshold_events = +\
 b.threshold_events from = bulk."bc_1819_17_fd6dbc1e_57e5_4d49_b896_59d6687c8ee6" as b where = s.markerset_id =3D '8d723d2f-1281-48c5-9\
016-2dab3f4d242b' and s.probandset_id =3D b.probandset_id and = s.markerset_id =3D b.markerset_id and s.startbase =3D b.startbase and = s.e\
ndbase =3D b.endbase and  s.probandset_id >=3D = '90000000-0000-0000-0000-000000000000' and s.probandset_id < = 'a0000000-0000-0000-0000-\
000000000000'
2019-03-15 17:07:30.818 MDT [317161] PANIC:  could not = write to file "pg_wal/xlogtemp.317161": No space left on = device
[4]2019-03-15 17:08:19.231 MDT [35166] = ERROR:  unterminated dollar-quoted string at or near = "$$

  =       begin
          =     --new probandset_group record
  =             insert into = probandset_group(id,name) select = uuid_generate_v4(),'1808_p3c2n4';

              --create = necessary new probandset and probandset_group_member = records
          =     select addprobandset(a.name, people, groupname) = from
                 =     (select powerset((select array_agg(name order by name) lst = from base.person
           =                   where = name in (superset))) as name
                 =             except (select = regexp_split_to_array(p.name,',') from  probandset p  )) = a
                 =     where array_length(a.name,1)>1;

          =     --update superset field for new = probandset_group
          =     update probandset_group set proband_superset_id =3D = (select id from probandset where name =3D = superset);
        = end;

[1] Last reported normal operation
[2] death knell
[3] = First failed operation from our application
[4] continued effort from create function = work
 
Thanks in advance.




= --Apple-Mail=_712C5B1F-E30D-433F-A87E-733605201B64--