From: | Dave Page <dpage(at)pgadmin(dot)org> |
---|---|
To: | Khushboo Vashi <khushboo(dot)vashi(at)enterprisedb(dot)com> |
Cc: | pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org> |
Subject: | Re: [pgAdmin4][Patch]: RM #2849 - Allow editing of data on tables with OIDs but no primary key |
Date: | 2017-12-02 05:12:29 |
Message-ID: | CA+OCxoyrH4uiGVtPP4TTEXfA8+JRocA0Z1yOyBMW9LieHCH-Sw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-hackers |
Hi
On Thursday, November 30, 2017, Khushboo Vashi <
khushboo(dot)vashi(at)enterprisedb(dot)com> wrote:
> Hi,
>
> Please find the attached updated patch.
>
> On Mon, Nov 27, 2017 at 5:15 PM, Dave Page <dpage(at)pgadmin(dot)org
> <javascript:_e(%7B%7D,'cvml','dpage(at)pgadmin(dot)org');>> wrote:
>
>> Hi
>>
>> On Thu, Nov 23, 2017 at 1:28 PM, Khushboo Vashi <
>> khushboo(dot)vashi(at)enterprisedb(dot)com
>> <javascript:_e(%7B%7D,'cvml','khushboo(dot)vashi(at)enterprisedb(dot)com');>> wrote:
>>
>>> Hi,
>>>
>>> Please find the attached patch for RM #2849: Allow editing of data on
>>> tables with OIDs but no primary key.
>>>
>>
>> I like that if I add a new row or rows and hit Save, the OIDs are fetched
>> immediately. However;
>>
>> - It marks the row as read-only. We do that currently because we don't
>> return the key info on Save, and thus require a Refresh before any further
>> editing. However, if we have the OID, we can edit again immediately.
>>
>> Fixed
>
>> - If we can return the new OIDs on Save, can't we do the same for primary
>> key values? That would be consistent with OIDs, and would remove the need
>> to disable rows, leading to a much nicer use experience I think.
>>
>> Implemented
>
This looks great, however there is one small issue I spotted; it looks like
we're inserting rows in a random order. For example, in the screenshot
attached, the last 5 rows were added in the order seen in the key1 column,
and then I hit Save and got the id values returned. Is that caused by
something we're doing, or the database server?
Thanks!
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Attachment | Content-Type | Size |
---|---|---|
Screen Shot 2017-12-01 at 15.17.24.png | image/png | 90.0 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Page | 2017-12-02 05:12:36 | Re: [pgAdmin4][Patch]: To fix the issue in Debugger module |
Previous Message | Murtuza Zabuawala | 2017-12-01 06:25:38 | [pgAdmin4][Patch]: Remove default 'Altertify JS' header from debugger related error alerts |