Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fQf4g-0005Wt-LK for pgsql-general@arkaria.postgresql.org; Wed, 06 Jun 2018 20:30:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fQf4f-0004BD-7t for pgsql-general@arkaria.postgresql.org; Wed, 06 Jun 2018 20:30:29 +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.89) (envelope-from ) id 1fQf4f-0004B2-01 for pgsql-general@lists.postgresql.org; Wed, 06 Jun 2018 20:30:29 +0000 Received: from sonic310-13.consmr.mail.ir2.yahoo.com ([77.238.177.34]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fQf4a-0003tg-1B for pgsql-general@lists.postgresql.org; Wed, 06 Jun 2018 20:30:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s2048; t=1528317021; bh=6TqGyjtYXBs7d7CyvBY2BTevgzbNEMgEgluy4vtUsdM=; h=Date:From:To:In-Reply-To:References:Subject:From:Subject; b=bdjnv8bPkaPSStFI6sEsadOZ61bY+WbBiMpfhia3Eo3LcmJ6EMBAn2ApacWeEHbCU5H3TNBF79l7XYVxMWnKWc1FukSAfNh4QvFLrinQL2nm56JHI2fIPFEqtrqGsR46CrjS+2LbGvoRdgdwe0QnmZdER13qEO0IVwDZi5jRdzVBDz/+yAhYmcGiAgbHptB9pvCmXnPPKqTnMe0C7MWP90b+j8RAb8k0Yt8qtmExoKKxtyL2n1z1c/6ao1+xl4xmLBnTUyRbDko/XAUpM/ynz2Ujnb+c67TYh1vsOCQAYbtMJ42w8bln41DDQUMgqsbihi5fyjkdPlkaoLiJC4YmXA== X-YMail-OSG: n8O8_DkVM1nqtrKqrZZzmlClFsBvAxrY34bnrWAeW_xnth1mimjkOap2KscP5IV hrUjC0RjZWcTsuZeVD6vc8xXxS5jdzz2VKCbdndetU8En5KGtbVeuc.bZHCxih9s_fdSe9pJxbFj n6cCT.m9wGv7BaMYzgbJEu8zvHNi8mowFhOE.P2tkZlZzpOl33uuVRxn59pW10wnsTZRi7Pjr4w9 NiSUwslKFyGKdgrFETyeLXWGGx.zFYy2GdfLUBtoi6HaHHIPjuos0tQNd8UgdVnrb84TSr260DxH AYS8a6Rt7r_D_ywj.S79.I_Mh7QWXGoGddyM581kbJiTyBxa7x2O7tiAE8RUEkcCXmvgb.DdWuQW GA0nJkFbgd3LxFlDkWWHyFvpbGnfvLISL4OmF_uQS6_bZE9qwIEPvX9ckW0sK_v92HcCbYmsaefr nCixl0t4um34gID_aZ5X4G6ACEtsQMdK0K3VvnOQbtxJpxVBU0khYJz16ddiXozV6BkbzIq46gPB OfjfTmBsOR2rNl0dejwJWShSWotvFozSsCXicvy_sk3H6lWTqNe1RdJHAMDPYw2nG3s_RyPLD3Uy JLKHz0Z2KHALm33n0gJcFAvhTPEqE7l_gCa20OR1nxKAWJi8y8zEsBcLkfY5Ua6dYgwBsAFikL8n 9_sbMkxWID7tqhk0kPK23FRzOV8soB8PVOIxYFhV6C9YOvDdNN5h.t3KlayW8jiFuiliH5RDrzo_ jtepW...AF1TbKPCKnfNGStHFmjsyyPEL2Bs.ZYpwIGMiTR9yKcXu0vcps1hJPkMOijgxrISTqIP PaXe1jhbVyuRVaxL0ZxC2x1UbPNQYojHDI61x0J0e786W2sJ5Mk2faxdP5_00n3dTZO47XgvVUkX jtSke2xPhayk1Z_GCPE4JCBPdC1bjcUGk28qIn2EB Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.ir2.yahoo.com with HTTP; Wed, 6 Jun 2018 20:30:21 +0000 Date: Wed, 6 Jun 2018 20:30:18 +0000 (UTC) From: ChatPristi To: "pgsql-generallists.postgresql.org" Message-ID: <606285219.2038704.1528317018514@mail.yahoo.com> In-Reply-To: <418944232.2718804.1527629702941@mail.yahoo.com> References: <2120893212.2682655.1526396569241.ref@mail.yahoo.com> <2120893212.2682655.1526396569241@mail.yahoo.com> <20180518102516.3gv64eoek7o7qpau@hjp.at> <418944232.2718804.1527629702941@mail.yahoo.com> Subject: Fw: Re: Out of memory error with PG10.3, 10.4 but not 9.3.19 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2038703_1668327132.1528317018512" X-Mailer: WebService/1.1.11950 YMailNorrin Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:60.0) Gecko/20100101 Firefox/60.0 Content-Length: 4612 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_2038703_1668327132.1528317018512 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable =20 Forgotten to CC the list too, sorry. again.. >1073741818 is a bit less than 1GB and 1073741818+32 is a bit more. So >you are obviously hitting a 1GB limit here. >Given that 1GB is the maximum length of a character type value in >PostgreSQL and the error message mentions a "string buffer", I suspect >that your query tries to construct a very long string. Try to rewrite >the query so that it creates several shorter strings instead.>=C2=A0 =C2= =A0 =C2=A0 hp Peter, Thank you for your answer.I understood tht some buffer limit is reached. Bu= t I do not see where.The output is 1513 rows and 78 kb. --=20 =C2=A0 _=C2=A0 | Peter J. Holzer=C2=A0 =C2=A0 | we build much bigger, bette= r disasters now |_|_) |=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 | because we have much more sophisticated | |=C2=A0 | hjp@hjp.at=C2=A0 =C2=A0 =C2=A0 =C2=A0 | management tools. __/=C2=A0 | http://www.hjp.at/ | -- Ross Anderson = =20 ------=_Part_2038703_1668327132.1528317018512 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Forgotten to CC the list too, sorry. agai= n..

=20
>1073741818 is a bit less than = 1GB and 1073741818+32 is a bit more. So
>you are obvious= ly hitting a 1GB limit here.
>Given that 1GB is the ma= ximum length of a character type value in
>PostgreSQL = and the error message mentions a "string buffer", I suspect
>that your query tries to construct a very long string. Try to rewrit= e
>the query so that it creates several shorter string= s instead.
>     = ; hp


Peter,

Thank you for your answer.
I understood = tht some buffer limit is reached. But I do not see where.
The out= put is 1513 rows and 78 kb.



-= -
  _  | Peter J. Holzer    | we bu= ild much bigger, better disasters now
|_|_) |   = ;                 | because we have= much more sophisticated
| |  | hjp@hjp.at=         | management tools.
__/ = ; | http://www.hjp.at/ | -- Ross Anderson <https://= www.edge.org/
>
=
------=_Part_2038703_1668327132.1528317018512--