Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1egZoi-0002DJ-AO for pgsql-general@arkaria.postgresql.org; Tue, 30 Jan 2018 17:35:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1egZog-0003we-R4 for pgsql-general@arkaria.postgresql.org; Tue, 30 Jan 2018 17:35:30 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1egZog-0003wV-DS for pgsql-general@lists.postgresql.org; Tue, 30 Jan 2018 17:35:30 +0000 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1egZoc-0002fD-Kt for pgsql-general@lists.postgresql.org; Tue, 30 Jan 2018 17:35:28 +0000 Received: by mail-wr0-x243.google.com with SMTP id v15so12069365wrb.8 for ; Tue, 30 Jan 2018 09:35:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=framestore.com; s=google; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=Hey0FtFvk3hBcbucGknis1MZ4oRL1U8hU612wQaevHM=; b=Fuo4F6y3oR0VkEpLWa/c2I9Wh9RfjMWRuMDw9ospl1bj0wu8RDnOc/gKtJfY0fQQaP y2aVUPGf4v8di0ySPuDWZBXRLv6O7bdxeYgX5/+0ty9FKJ2bsgWE3OBIk8at+TQVVph4 pjchTMVU/pYrOsl+7jhl8fv3VqY8PRHT5yPvs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=Hey0FtFvk3hBcbucGknis1MZ4oRL1U8hU612wQaevHM=; b=rcv0CjU5F8TPL7K2zJMJ2y2zs/uVepHtZwytnj74fs4BwSOAd5fSZwSikNEAuba1Y2 UIhmMeIEvOOhQHWY1CUADWiEt++WyAhm1iOJfz6r73GxmorFNvc6JwqkZI41Kxbkr+wy Nu1NSD/ROBsNE9Bkoi6CIp0bKo1+ZBg7QloPh7neRlDIo8fufDRXIETFPUoLw0tQTkrn QAFoPTvdlfrxV2XCvnN3FeFAnZm8BtvR8u4zYFDA+AlwXsXFoXcxzsJ2o8eqZyOdorQ5 AnvZv+VsE2ddEqa/RhA2CvtCnm0nUTzgevEW0NjEuBQSGKHbydXdrscz7Hg/76qPpHVZ neJA== X-Gm-Message-State: AKwxytf+xd+j1FLW5+zMdbIAGBWmtbPLYTg3soTTLIDKy7Cyh8cPZV8G ZXf7HvVoz8KOvuJAX8DGF5XOTE8V X-Google-Smtp-Source: AH8x227VhYq/UrrXsfoum6v3iOaS8a1TJfPdLNvRVjqxwmS9LA8TqzQDvKH/FJ8ATflE0DrmVyXasA== X-Received: by 10.223.175.213 with SMTP id y21mr18327251wrd.135.1517333724307; Tue, 30 Jan 2018 09:35:24 -0800 (PST) Received: from sys1099.ldn.framestore.com (ldndefault.framestore.com. [185.101.14.7]) by smtp.gmail.com with ESMTPSA id o18sm17258427wrc.62.2018.01.30.09.35.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Jan 2018 09:35:23 -0800 (PST) To: pgsql-general@lists.postgresql.org From: Stefan Blanke Subject: ERROR: invalid memory alloc request size 1073741824 Message-ID: <733ecd96-48ed-8d49-15e1-413eb535c4c6@framestore.com> Date: Tue, 30 Jan 2018 17:35:23 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello, We've tripped over an error when doing a "COPY.. TO STDOUT WITH BINARY" query. "ERROR: invalid memory alloc request size 1073741824" (exactly 1GB) So a palloc() call is failing on the AllocSizeIsValid() check. Does anyone know if this a safety catch we are tripping with a bad query - or whether this check is something that should never be hit (i.e. a bug). This has been some discussion before about making a change before the 9.5beta1: https://www.postgresql.org/message-id/flat/9A28C8860F777E439AA12E8AEA7694F8010F6F3F%40BPXM15GP.gisp.nec.co.jp https://www.postgresql.org/message-id/flat/CAKJS1f_sxPyBHF6%3DnEYwPJdKKDNjVDP91b_EJApfyGTei%3DViDw%40mail.gmail.com postgresql 9.5.4 (2PGDG.rhel6) work_mem = 256MB Thanks, Stefan