Re: Pgadmin 4 cannot add or modify line in a view

From: intmail01 <intmail01(at)gmail(dot)com>
To: Usman Khan <umk555(at)gmail(dot)com>
Cc: pgadmin-hackers(at)lists(dot)postgresql(dot)org, pgsql-sql(at)lists(dot)postgresql(dot)org
Subject: Re: Pgadmin 4 cannot add or modify line in a view
Date: 2024-05-30 18:01:16
Message-ID: CAKJANSAX+4SNMc0gahoMbJds51vTGKM_+8VS2Cf+1cMoNAi8tg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers pgsql-sql

I read the PostgreSQL manual and view can be modified if some rules are
respected. My query is very simple and follow rules : SELECT * FROM
thePartionedTable
When I run code with INSERT and UPDATE clause then it work fine.
In fact the view comes from a partitioned table. After an INSERT or UPDATE
I checked both source tables and they are well updated.

The reason why Pgadmin locks the array may come from the fact there is no
defined primary key. My partitioned table have primary key.
I do not have any idea how to re-define again a primary key for a view.

Thanks

On Thu, May 30, 2024 at 5:52 PM Usman Khan <umk555(at)gmail(dot)com> wrote:

>
> Can you please elaborate your requirement a bit more?
> The result grid is usually non editable for views. You can edit table data
> to reflect values in view.
>
> Note : adding pgadmin-hackers for more guidance.
>
>
> On Thu, May 30, 2024 at 7:25 PM intmail01 <intmail01(at)gmail(dot)com> wrote:
>
>> Hi,
>> I tried to modify and add manuallly a line in a view with pgadmin4 but
>> the interface doesnt allow it because cells are locked and no empty line to
>> add new one.
>> The same issues for Libreoffice Base interface.
>>
>> If I do the operation with command UPDATE then it works well .
>> How to permit pgadmin4 to not lock the interface ?
>>
>> I run postgresql 14.1.
>>
>> Thanks
>>
>

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Usman Khan 2024-05-30 19:07:15 Re: Pgadmin 4 cannot add or modify line in a view
Previous Message Usman Khan 2024-05-30 14:52:02 Re: Pgadmin 4 cannot add or modify line in a view

Browse pgsql-sql by date

  From Date Subject
Next Message Usman Khan 2024-05-30 19:07:15 Re: Pgadmin 4 cannot add or modify line in a view
Previous Message Usman Khan 2024-05-30 14:52:02 Re: Pgadmin 4 cannot add or modify line in a view