Re: [pgAdmin4][Patch] - RM 4030 - IDENTITY column not recognised

From: Khushboo Vashi <khushboo(dot)vashi(at)enterprisedb(dot)com>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: [pgAdmin4][Patch] - RM 4030 - IDENTITY column not recognised
Date: 2019-03-21 09:52:18
Message-ID: CAFOhELfUmUZdmJ6zK56_NaeRtgj4uEZQKCDxrGH7DovLLUc1aw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi Dave,

On Wed, Mar 20, 2019 at 8:37 PM Dave Page <dpage(at)pgadmin(dot)org> wrote:

> Hi
>
> On Wed, Mar 20, 2019 at 7:30 AM Khushboo Vashi <
> khushboo(dot)vashi(at)enterprisedb(dot)com> wrote:
>
>> Hi,
>>
>> Please find the attached patch to fix the RM #4030 - IDENTITY column not
>> recognised.
>> - Added support for IDENTITY column for PostgreSQL >= 10.0
>>
>
> A few issues unfortunately:
>
> - There's an extra space in the generated SQL for an identity column on a
> table, right before the end comma (in both the CREATE and reverse
> engineered SQL.
>
> - I cannot make an IDENTITY column a primary key through the UI, nor does
> it reverse-engineer that property in the SQL if I create it via SQL (it
> does properly set the switch value though).
>
This issue has already been logged earlier, but I will fix this with this
patch.

>
> - After creating an IDENTITY column, there should be a dependency on the
> sequence, but I don't see this listed.
>
If the *Show System Object* is enabled, then only you can see.

>
> - We should consider the auto-created sequence a system object, and hide
> it in the treeview by default as it's an implementation detail.
>
How, can I identify those as a system object? I tried but couldn't find a
way.

>
> - If I click on an IDENTITY column in the treeview, the reverse-engineered
> SQL just shows the plain datatype.
>
Fixed.

>
> - Can we reasonably support the sequence_options clause?
>
I will look into it.

>
> Thanks.
>
> Thanks,
Khushboo

> --
> Dave Page
> Blog: http://pgsnake.blogspot.com
> Twitter: @pgsnake
>
> EnterpriseDB UK: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company
>

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Dave Page 2019-03-21 10:27:03 Re: [pgAdmin4][Patch] - RM 4030 - IDENTITY column not recognised
Previous Message Dave Page 2019-03-21 09:42:25 Re: [pgAdmin4][RM3968] Panel automatically gets resized (wcDocker)