Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n7bkt-0007Mn-FU for pgsql-general@arkaria.postgresql.org; Wed, 12 Jan 2022 11:25:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n7bks-0000hC-9K for pgsql-general@arkaria.postgresql.org; Wed, 12 Jan 2022 11:25:26 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n7bkr-0000h2-Tt for pgsql-general@lists.postgresql.org; Wed, 12 Jan 2022 11:25:25 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n7bko-0000c0-SC for pgsql-general@postgresql.org; Wed, 12 Jan 2022 11:25:24 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 29FC43200E86; Wed, 12 Jan 2022 06:25:21 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 12 Jan 2022 06:25:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=fm1; bh=PSahorsdqx/xB+t16+gghAOsTGfoYpnGRpgICi2Qw 1U=; b=RUA9CjhZVfS/0ZQgt0WLVQAuXpPNwVGpge7p5fsR6+eY6sFV58w+J9Slf 8DgJ44DhC/q5auw5ZIoKqHS2YfwEwnaeTG/2XVf0pzzhOjxDzVeCW20LPomh8MXP exHfE4eq2DIR8nxwtxhI3J13irEquGbfYbKUywXQmzF5682hPw8yBnPCUFVygMD0 P2F8iJ/7grFLezhy+eXWpSEeHoaWVwQhlbiIhtToMscT4TrthomcYCGHCDStwne7 VBxGWw+20oPJdsB48fcWKs82MLj4ZlcYRd05XonAMNDXUaf5qCZ24J8Ibi6EFG21 ++Hc4lBbL1ISLQK0hc5n9zxDNUDxA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrtddugddtvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpefrvghtvghr ucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvghnthgvrh hprhhishgvuggsrdgtohhmqeenucggtffrrghtthgvrhhnpeelgfetfeeitdelleeggeej vefhueetfedvtdejheevueeifeegvdfhueeludetueenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghuthes vghnthgvrhhprhhishgvuggsrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 12 Jan 2022 06:25:19 -0500 (EST) Message-ID: <08628ac8-0b69-391c-3387-60188a9b1882@enterprisedb.com> Date: Wed, 12 Jan 2022 12:25:18 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 Subject: Re: How to read an external pdf file from postgres? Content-Language: en-US To: Amine Tengilimoglu , "pgsql-general@postgresql.org >> PG-General Mailing List" References: From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 12.01.22 12:16, Amine Tengilimoglu wrote: >      I want to read an external pdf file from postgres. pdf file will > exist on the disk. postgres only know the disk full path as metadata. Is > there any software or extension that can be used for this? Or do we have > to develop software for it?  Or what is the best approach for this? I'd > appreciate it if anyone with experience could make suggestions. You could write a function in PL/Perl or PL/Python to open and read the file and process the PDF data, using some third-party module that surely exists somewhere.