From: | Aditya Toshniwal <aditya(dot)toshniwal(at)enterprisedb(dot)com> |
---|---|
To: | Dave Page <dpage(at)pgadmin(dot)org> |
Cc: | Pravesh Sharma <pravesh(dot)sharma(at)enterprisedb(dot)com>, pgadmin-hackers(at)postgresql(dot)org |
Subject: | Re: Require suggestions on issue #7811 |
Date: | 2024-09-03 09:06:44 |
Message-ID: | CAM9w-_mPc3teqD7nD+NsFAHXyGtAQ_U8Uq3mAQDfK5s4Q9HKfw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-hackers |
On Tue, Sep 3, 2024 at 2:05 PM Dave Page <dpage(at)pgadmin(dot)org> wrote:
>
>
> On Tue, 3 Sept 2024 at 09:29, Pravesh Sharma <
> pravesh(dot)sharma(at)enterprisedb(dot)com> wrote:
>
>> Hi Dave,
>>
>> On Tue, Sep 3, 2024 at 1:47 PM Dave Page <dpage(at)pgadmin(dot)org> wrote:
>>
>>> Hi
>>>
>>> On Tue, 3 Sept 2024 at 09:10, Pravesh Sharma <
>>> pravesh(dot)sharma(at)enterprisedb(dot)com> wrote:
>>>
>>>> Hi Hackers,
>>>>
>>>> I am working on issue #7811
>>>> <https://github.com/pgadmin-org/pgadmin4/issues/7811>, where using an
>>>> external database for storing pgAdmin configuration results in duplicate
>>>> server entries when a container with a mapped servers.json file is
>>>> restarted.
>>>>
>>>> The proposed solution is to implement a check when loading servers. We
>>>> would verify the server’s name, host, port, and username to determine if
>>>> the server already exists in the database. If it does, we would skip
>>>> registering it again.
>>>>
>>>>
>>>> Please share any suggestions or feedback on this approach.
>>>>
>>>
>>> I would say "Won't fix". If someone is using persistent storage for
>>> settings, why launch containers to import the same servers over and over
>>> again? Just load them once, manually.
>>>
>> What if the container needs to be restarted? In that case it will again
>> import the server making a duplicate entry.
>>
>
> Not if the servers are manually imported rather than through servers.json.
>
Good point!
>
> --
> Dave Page
> pgAdmin: https://www.pgadmin.org
> PostgreSQL: https://www.postgresql.org
> EDB: https://www.enterprisedb.com
>
> PGDay UK 2024, 11th September, London: https://2024.pgday.uk/
>
>
--
Thanks,
Aditya Toshniwal
pgAdmin Hacker | Sr. Software Architect | *enterprisedb.com*
<https://www.enterprisedb.com/>
"Don't Complain about Heat, Plant a TREE"
From | Date | Subject | |
---|---|---|---|
Next Message | Yogesh Mahajan | 2024-09-03 09:31:31 | Re: Require suggestions on issue #7811 |
Previous Message | Dave Page | 2024-09-03 08:34:51 | Re: Require suggestions on issue #7811 |