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 1gN2P8-0007JH-G7 for pgsql-general@arkaria.postgresql.org; Wed, 14 Nov 2018 21:08:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gN2P5-0003Go-Ky for pgsql-general@arkaria.postgresql.org; Wed, 14 Nov 2018 21:08:51 +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 1gN2P5-0003Ev-8T for pgsql-general@lists.postgresql.org; Wed, 14 Nov 2018 21:08:51 +0000 Received: from mail-ot1-x329.google.com ([2607:f8b0:4864:20::329]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gN2P3-0002t5-15 for pgsql-general@lists.postgresql.org; Wed, 14 Nov 2018 21:08:50 +0000 Received: by mail-ot1-x329.google.com with SMTP id s5so16075827oth.7 for ; Wed, 14 Nov 2018 13:08:48 -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=ZtBNMcrQUQKGtthOSe+4KDBhGS2eOIqREMnv8dV1t20=; b=HzFf+jqBwCf8Fdbjb23ABsgSEtEe5/pFkZ8cHAR7uNHDrOZJ9DTf1H6X7dbVg673Ic lde4ETL9O52jjeb7nQgcVIi80U+Q5O9f7a81kYK7klVnIR4mShN65Uuf0BjCVQmnmxQS Ve8B12WSnEPSAA22GSyGDassO83V9RbVM48vj49ZleRSrj2U0R6pwGGhVoGxFLINSbcx N9VBBxIQJDl+r11h8a+Eu4HEoIvQMa672Hip0SHlyjvyLusiBpZInrHNfqvFUqVIgK5V bTU44XIgYzNMhlkqQkFLfQcce6Df6x50WvmoR9t3vW1TDPw9rgfK72QIykhBuAOBMiwz k7fw== 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=ZtBNMcrQUQKGtthOSe+4KDBhGS2eOIqREMnv8dV1t20=; b=eYUPPdi4js7EXtfec27hmktFlNtCHPlRQ15tJEOHSJe1NcN+QGrGv2xVv9EmpJ1noh D5lWsfDVlUIr8kwn7nF+eGHxD0tbjEAo+9FkQngBzSlcve/rbP9NnJ2DzvsQSgB1gAsx Js8hEFnT6yujGjVfRjgOgFjzlQNq1+bJh+nfMh9lbL3vfmLbtYo4UAsGiL/FCNGJrpv7 Cw3WGdaFp75iuaci204XJ2q6qFHHEJHHza/44yAIQWzwLMcgjSAa/FZDubE6V9lfPB5G 9ffaOYfMmO+8e7iOgrM4S6lJIq74RtMAv74FETgE2Lf6SXWFfxI5Gcr7kruGnhXgcSqE 5Rsg== X-Gm-Message-State: AGRZ1gKyiCdw9TGmaKxYv+QMx8rjxx8CTx+8nm7ixm+0sSoTOp8y0ZgY USk92P9G7FxLB12MKHisLNJiv5O6 X-Google-Smtp-Source: AJdET5fGAoYmC7dUmQrS6qLTcPqX504H3spObHtnyFA2zgb8oQHn76Q2xK94c7fJONJ57exkiCbk5A== X-Received: by 2002:a9d:50a2:: with SMTP id b34mr2189077oth.170.1542229726258; Wed, 14 Nov 2018 13:08:46 -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 m18-v6sm4583317oic.14.2018.11.14.13.08.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Nov 2018 13:08:45 -0800 (PST) Subject: Re: pg_dump out of memory for large table with LOB To: pgsql-general@lists.postgresql.org References: <8FC5F25FF3EC4744ADFCF20CBA3F44BE016811BCEF@SRV-CAMTL-EXCH2.Forensictech.com> <73d2f4fb-3da4-1c09-8bff-88a35f16bcd2@anayrat.info> <8FC5F25FF3EC4744ADFCF20CBA3F44BE016811C1EF@SRV-CAMTL-EXCH2.Forensictech.com> From: Ron Message-ID: <31706cdf-97bd-7a7b-47cc-2e90309725b6@gmail.com> Date: Wed, 14 Nov 2018 15:08:44 -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: <8FC5F25FF3EC4744ADFCF20CBA3F44BE016811C1EF@SRV-CAMTL-EXCH2.Forensictech.com> Content-Type: multipart/alternative; boundary="------------2488C6EF53DDF55BAA12F432" 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. --------------2488C6EF53DDF55BAA12F432 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 11/14/2018 11:14 AM, Jean-Marc Lessard wrote: > Adrien Nayrat wrote: > > With 17 million LO, it could eat lot of memory ;) > Yes it does. > > I did several tests and here are my observations. > > First memory settings are: > shared_buffers = 3GB > work_mem = 32Mb > maintenance_work_mem = 1GB > effective_cache_size = 9MB > bytea_output = 'escape' Why escape instead of hex? -- Angular momentum makes the world go 'round. --------------2488C6EF53DDF55BAA12F432 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit On 11/14/2018 11:14 AM, Jean-Marc Lessard wrote:
Adrien Nayrat wrote:
> With 17 million LO, it could eat lot of memory ;)
Yes it does.

I did several tests and here are my observations.

First memory settings are:
shared_buffers = 3GB
work_mem = 32Mb
maintenance_work_mem = 1GB
effective_cache_size = 9MB
bytea_output = 'escape'

Why escape instead of hex?


--
Angular momentum makes the world go 'round.
--------------2488C6EF53DDF55BAA12F432--