Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t8iV0-005biT-PM for pgsql-admin@arkaria.postgresql.org; Wed, 06 Nov 2024 16:03:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1t8iUw-007F1a-Sx for pgsql-admin@arkaria.postgresql.org; Wed, 06 Nov 2024 16:03:11 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t8iUv-007Ezq-Li for pgsql-admin@lists.postgresql.org; Wed, 06 Nov 2024 16:03:11 +0000 Received: from fhigh-a5-smtp.messagingengine.com ([103.168.172.156]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t8iUs-000Ufe-Kj for pgsql-admin@postgresql.org; Wed, 06 Nov 2024 16:03:08 +0000 Received: from phl-compute-11.internal (phl-compute-11.phl.internal [10.202.2.51]) by mailfhigh.phl.internal (Postfix) with ESMTP id 1C05D11400F8; Wed, 6 Nov 2024 11:03:05 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-11.internal (MEProxy); Wed, 06 Nov 2024 11:03:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1730908985; x=1730995385; bh=X pB5mTjvoUvILO545ca7ZakWuXCKsy7dkZ4AT30YYdg=; b=Xlvxe+PcAAkHjMF0b nvPW/NYuC4eWIwBQiCagd/zDB6gr7DsR8anqKCgNHxvnHjU5fl1zS2ke4W5wWSij NUBW1qVnuzmR3H/kV6a5NDj0tphKj8anE0NqSeJYLkfwUeLG/er0WkrKcjkMLfBv z1EHMdCSZFofOdj14Uims2iuZa8ovg0HhoZkcU11krgBMZilwcLc8ov/+BTEWLqo cA6ytLCrQHulsfLhc1zUonUhlGuJ5krxHkQq+TP9iQpNkf1qMmbz1iPkAW1S9iNq VWhasftdspX+rvyKq8DmoYofU4pDccrlUYhCGr/Wx3HgvTSF5mHFpsaHOKS5bDoO F96Bg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrtddvgdekvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecu hfhrohhmpeetlhhvrghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrd hnohdqihhprdhorhhgqeenucggtffrrghtthgvrhhnpedvkedtffduffdtffffheffhfej jefhgfeiueeukeejkeffgfdufffhudffffeuveenucffohhmrghinhepvghnthgvrhhprh hishgvuggsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghi lhhfrhhomheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrghdpnhgspghrtg hpthhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepfigrshhimhguiedt sehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqrggumhhinheslhhishhtsh drphhoshhtghhrvghsqhhlrdhorhhgpdhrtghpthhtohepphhgshhqlhdqrggumhhinhes phhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 6 Nov 2024 11:03:04 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1730908981; bh=4QZskJY363Yr5iQ6mVKm/J9IHXZFT7viwtoJuIwkjbA=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=dOzHQJhDPHPXs0spXGShZqHzMZgAatlVgK0i0Es24ArjB+AttCehQdPpTVceNtkQc d5P0kHcQlgvgwPKfZ0Xh+WIsh1CcQLMh+KicSU968MdVBFwrKI5tKo4kbHK+fDJgdO j1N2kl//5S0kWpycJDH54Q27FzYyzVNiXWQRHvPMPFt6lC7Lr+kJo6HMcF6w3L2f3S yfG7Q1zO478QpNGP4O/FMhFqSzD3So52LAQBnBFyHdgjX6sg2wWhU7n+gha10ZAWIS TfKr6Frjl2+0d7I3jhD3NqqMcx+Q4UR7XYNyZLq8g0CwFwfCEGb9ZjpD6DmsRiKouK UOol8dfXmAwBA== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id F2F349B; Wed, 6 Nov 2024 17:03:00 +0100 (CET) Date: Wed, 6 Nov 2024 17:03:00 +0100 From: Alvaro Herrera To: Wasim Devale Cc: pgsql-admin , Pgsql-admin Subject: Re: Bytea datatype content to view Message-ID: <202411061603.rile4w5i3ugo@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024-Nov-06, Wasim Devale wrote: > Hi All > > I have a table having bytea datatype. Anyone has worked on it how we can > see the content as the files are in .csv, .pdf, .bin and .docx format. In a pinch, you could turn the bytea column into an LO using the lo_from_bytea() function and use psql's \lo_export. Quick and easy, no need to write any code. -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/