public inbox for [email protected]
help / color / mirror / Atom feedFrom: Pradip Parkale <[email protected]>
To: Akshay Joshi <[email protected]>
Cc: pgadmin-hackers <[email protected]>
Subject: Re: [pgAdmin][RM5427]: pgAdmin is freezing
Date: Mon, 8 Nov 2021 14:19:58 +0530
Message-ID: <CAJ9T6StA_ppBf1AiLyM7yN7HNO_mfi1qK3y+Wya9JjFp5pY0nQ@mail.gmail.com> (raw)
In-Reply-To: <CANxoLDczmG8iYu7dpn4Qdd0mOzh52Sn7wBk6ji6GxsQ9UNR2+A@mail.gmail.com>
References: <CAJ9T6Su5Eqt+gVxvwiYYHm0ANpJERduW1gr3eyY6NdKvUAZCaA@mail.gmail.com>
<CANxoLDczmG8iYu7dpn4Qdd0mOzh52Sn7wBk6ji6GxsQ9UNR2+A@mail.gmail.com>
Hi Akshay,
Please find the attached patch.
On Wed, Oct 27, 2021 at 11:06 AM Akshay Joshi <[email protected]>
wrote:
> Thanks, the patch applied.
>
> On Wed, Oct 27, 2021 at 10:10 AM Pradip Parkale <
> [email protected]> wrote:
>
>> Hi Hackers,
>>
>> Please find the attached patch for #5427 pgAdmin is freezing.
>>
>>
>> --
>> Thanks & Regards,
>> Pradip Parkale
>> Software Engineer | EnterpriseDB Corporation
>>
>
>
> --
> *Thanks & Regards*
> *Akshay Joshi*
> *pgAdmin Hacker | Principal Software Architect*
> *EDB Postgres <http://edbpostgres.com>*
>
> *Mobile: +91 976-788-8246*
>
--
Thanks & Regards,
Pradip Parkale
Software Engineer | EnterpriseDB Corporation
Attachments:
[application/octet-stream] RM5427.patch (1.2K, 3-RM5427.patch)
download | inline diff:
diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/__init__.py b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/__init__.py
index cecd7ad27..2dcb6ca3c 100644
--- a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/__init__.py
+++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/__init__.py
@@ -29,6 +29,7 @@ from pgadmin.browser.server_groups.servers.databases.schemas.tables.\
columns import utils as column_utils
from pgadmin.browser.server_groups.servers.databases.schemas.tables.\
constraints.exclusion_constraint import utils as exclusion_utils
+from pgadmin.utils.exception import ExecuteError
class TableModule(SchemaChildModule):
@@ -1024,6 +1025,11 @@ class TableView(BaseTableView, DataTypeReader, SchemaDiffTableCompare):
if not status:
return res
+ lock_on_table = self.get_table_locks(did, res['rows'][0])
+ if lock_on_table != '':
+ return ExecuteError(
+ error_msg=str(lock_on_table.json['info']))
+
return super(TableView, self).update(
gid, sid, did, scid, tid, data=data, res=res)
except Exception as e:
view thread (4+ messages) latest in thread
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 using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: [pgAdmin][RM5427]: pgAdmin is freezing
In-Reply-To: <CAJ9T6StA_ppBf1AiLyM7yN7HNO_mfi1qK3y+Wya9JjFp5pY0nQ@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox