Re: Require suggestions on feature 4011 - Mailing list pgadmin-hackers

From Aditya Toshniwal
Subject Re: Require suggestions on feature 4011
Date
Msg-id CAM9w-_=AN-av6P5NE_64x3fZs2fq-T4biF5kH_Ec8MUgLQLLLw@mail.gmail.com
Whole thread Raw
In response to Re: Require suggestions on feature 4011  (Pravesh Sharma <pravesh.sharma@enterprisedb.com>)
List pgadmin-hackers
Hi Pravesh,

I think we'll have to load the binary data in the backend at least like you mentioned. It will increase memory consumption, so we'll have to make this feature preference based with clear mention of the memory requirements in the help string and by default disabled.

On Thu, Aug 14, 2025 at 2:35 PM Pravesh Sharma <pravesh.sharma@enterprisedb.com> wrote:
Hi Hackers,

Any suggestions on the above issue.

Thanks,
Pravesh

On Fri, Aug 8, 2025 at 3:41 PM Pravesh Sharma <pravesh.sharma@enterprisedb.com> wrote:
Hi Hackers,

I'm working on feature #4011, which involves exporting and importing BLOB (bytea) data. I've checked its feasibility and these are the challenges I'm facing:

Currently, we simply return the string "binary data" for bytea columns, and we don't load the actual binary data at all. If we want to download this data, we can bring it to the cursor, but when returning it to the front end, we'll still send the string "binary data" Upon a user's request to download, we'll fetch it from the cursor and return it.

The main challenge I'm facing is how we'll identify the row from which the download needs to happen if there's no primary key in the table. Additionally, keeping binary data in memory could cause performance issues. For this reason, we can make it a preference-based option.


Please let me know your thoughts/suggestions.


Thanks,

Pravesh


--


Pravesh Sharma

Senior SDE

+91 9406461406


enterprisedb.com



--
Thanks,
Aditya Toshniwal
pgAdmin Hacker | Sr. Staff SDE II | enterprisedb.com
"Don't Complain about Heat, Plant a TREE"

pgadmin-hackers by date:

Previous
From: Pravesh Sharma
Date:
Subject: Re: Require suggestions on feature 4011
Next
From: Akshay Joshi
Date:
Subject: Translators: Release next week (v9.7)