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 1haUGU-0000P5-Go for pgsql-general@arkaria.postgresql.org; Tue, 11 Jun 2019 00:03:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1haUGS-0007RP-6z for pgsql-general@arkaria.postgresql.org; Tue, 11 Jun 2019 00:03:48 +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 1haUGQ-0007RH-8m for pgsql-general@lists.postgresql.org; Tue, 11 Jun 2019 00:03:47 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1haUGM-0003Ss-Q1 for pgsql-general@postgresql.org; Tue, 11 Jun 2019 00:03:44 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 8E2FC22465; Mon, 10 Jun 2019 20:03:41 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 10 Jun 2019 20:03:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=a gQLCkPKJHMqWXGcCfanih3VMq2PWl6J7MXTMJcKwoo=; b=VOLU5qYA0p7Oo+KJ4 vbDwlmRYFiMqG2UME4b82vxUNanHXySlLvZ1Tz83VleyV6gksrivrTrraArmxB/v waj0J/iM3tVmy6dQBw4to5qI+t/i4EXo3n4yBQeEg7I1F5Eyg3ttAYA5zbygRPn6 L5tJNcr184JBtE8rMzVFV0ggZKA6Z8/5R9unqwiy98S02ey92Sgi5LsAiOfkW2yy BW1oitgHzgrXGQLgSO+P34X/aJKTz8bnErqspAreykw4NiPLanc91UMFJDafdsWn Pw3LKtxKbZhZH8fyTFRASP6pBgTL/gFwRzP00qsDWrigmcl/APGysYlA/cGyb3fx V9Q/g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=agQLCkPKJHMqWXGcCfanih3VMq2PWl6J7MXTMJcKw oo=; b=EWYNVaEZOuU/dQNs9YpgDWnZO8lYLsp3r/oQ+YLfG+LVC61CMlRcHVb2u LN/hT7MV+h6I3PRFvfwCwtPpTR6UZuR0eDysb3ijDRzeyZ4pqo6tGCgfYpHCJONl OMBmg+XNwqgg7jupyj91aQhsxnaXPiLX5Uteb3IKETAzxAfUhRhnzZAx3n9qlQ0c IhCbFCnfiSeBUuoNRrHMXauQb/fmyLJadftYG72uoBmmh3NJ4ATihcfZP614cgLj SOuXSnXQJd+ISU+z/ZsvNuZ2AYD/9ckuOgSqrYVSIkiGEunvGCP3RXi4DDC3tUJb 5sxI/76Sp9xBTvcTgZ7XN6l9I4QDA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrudehfedgfedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthejredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucffohhmrghinhepshhtrggtkhhovhgvrhhflhhofidrtghomhenucfkphepjedu rddvuddvrdduhedtrddvtddvnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnh drkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id CE7278005B; Mon, 10 Jun 2019 20:03:40 -0400 (EDT) Subject: Re: Inserting into the blob To: Igor Korot Cc: pgsql-general References: <6cbb4f03-7c05-4473-330d-b220b0a9ec7b@aklaver.com> From: Adrian Klaver Message-ID: <84a73244-f26e-c2cc-4fac-81e6e39b7a42@aklaver.com> Date: Mon, 10 Jun 2019 17:03:39 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 6/10/19 9:30 AM, Igor Korot wrote: > > According to https://stackoverflow.com/questions/16048649/postgresql-9-x-pg-read-binary-file-inserting-files-into-bytea, > the file needs to be on the server inside PGDATA directory. > It is not a problem in general, but just curious - is there a more > generic solution (to get the file from the client)? This would depend on what is is you are trying to accomplish: 1) Are you really wanting to insert a file at a time at the psql command line? 2) If not then is there a program you are using/writing that will insert the data? > > Thank you. > -- Adrian Klaver adrian.klaver@aklaver.com