pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Daniele Varrazzo <daniele.varrazzo@gmail.com>
Cc: Ron <ronljohnsonjr@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: PGAdmin4.11.1 on Ubuntu 18.04
Date: Thu, 1 Aug 2019 09:14:50 -0700
Message-ID: <90e6f6eb-bc66-ebb1-cd1f-a3d6eba9c5b5@aklaver.com> (raw)
In-Reply-To: <CA+mi_8a_C3jpnJ0reHfwi+Emfj7Y3Cve_GTrz2+9p_1esKAR5Q@mail.gmail.com>
References: <CAG0dhZBV2krLp+v-NFNJtfV-ifTN5aOUXS29DAvwxmUHHMcXaQ@mail.gmail.com>
	<60b0d698-1157-5212-2fa6-da69dd1354b6@aklaver.com>
	<CAG0dhZC-1_0zMBxphDv=29scQj7HCBsJyPn=ZXWGPxiBPqsP3A@mail.gmail.com>
	<CAG0dhZDAF8yq9hj1UvHuE3kXX5Winqj7sB3Ge6so3KhFF20HSg@mail.gmail.com>
	<4017c72d-06d2-932e-138d-94088c58688f@gmail.com>
	<86139d4c-f173-3d9f-1256-cd2c7f08a2a9@aklaver.com>
	<CA+mi_8a_C3jpnJ0reHfwi+Emfj7Y3Cve_GTrz2+9p_1esKAR5Q@mail.gmail.com>

On 8/1/19 9:05 AM, Daniele Varrazzo wrote:
> On Thu, Aug 1, 2019 at 4:43 PM Adrian Klaver <adrian.klaver@aklaver.com> wrote:
> 
>> Yeah the requirements file shows psycopg2-2.8:
>> https://github.com/postgres/pgadmin4/blob/master/requirements.txt
>>
>> The issue(I'm assuming) is:
>>
>> http://initd.org/psycopg/articles/2019/04/04/psycopg-28-released/
>> "Added table_oid and table_column attributes on cursor.description items
>> (ticket #661)."
> 
> Couldn't be pgadmin forgiving if these attributes are not available?

Looks like it is wrapped up in this:

https://www.pgadmin.org/docs/pgadmin4/4.11/release_notes_4_11.html
Issue #1760 - Add support for editing of resultsets in the Query Tool, 
if the data can be identified as updatable.

https://redmine.postgresql.org/issues/1760

def check_updatable_results_pkeys(self):

	"""

         This function is used to check whether the last successful query
	produced updatable results and sets the necessary flags and
         attributes accordingly. Should be called after polling for the 
results is successful(results are ready)

         """


...

   self.is_updatable_resultset, self.primary_keys, pk_names,table_oid = \
             is_query_resultset_updatable(conn, sql_path)


> 
> -- Daniele
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (13+ messages)  latest in thread

Message-ID: <90e6f6eb-bc66-ebb1-cd1f-a3d6eba9c5b5@aklaver.com>
Permalink:  ../90e6f6eb-bc66-ebb1-cd1f-a3d6eba9c5b5@aklaver.com/
Also on:    postgresql.org/message-id/90e6f6eb-bc66-ebb1-cd1f-a3d6eba9c5b5@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, daniele.varrazzo@gmail.com, ronljohnsonjr@gmail.com
  Subject: Re: PGAdmin4.11.1 on Ubuntu 18.04
  In-Reply-To: <90e6f6eb-bc66-ebb1-cd1f-a3d6eba9c5b5@aklaver.com>
  References: <CAG0dhZBV2krLp+v-NFNJtfV-ifTN5aOUXS29DAvwxmUHHMcXaQ@mail.gmail.com> <60b0d698-1157-5212-2fa6-da69dd1354b6@aklaver.com> <CAG0dhZC-1_0zMBxphDv=29scQj7HCBsJyPn=ZXWGPxiBPqsP3A@mail.gmail.com> <CAG0dhZDAF8yq9hj1UvHuE3kXX5Winqj7sB3Ge6so3KhFF20HSg@mail.gmail.com> <4017c72d-06d2-932e-138d-94088c58688f@gmail.com> <86139d4c-f173-3d9f-1256-cd2c7f08a2a9@aklaver.com> <CA+mi_8a_C3jpnJ0reHfwi+Emfj7Y3Cve_GTrz2+9p_1esKAR5Q@mail.gmail.com> <90e6f6eb-bc66-ebb1-cd1f-a3d6eba9c5b5@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox