Re: [pgAdmin4][Patch]: Fixed RMs #1220 & #1221 - Mailing list pgadmin-hackers

From Khushboo Vashi
Subject Re: [pgAdmin4][Patch]: Fixed RMs #1220 & #1221
Date
Msg-id CAFOhELdQycDB=TQTNorZTzXJc0p0zEW8LcyA6S_mS9J7men+rQ@mail.gmail.com
Whole thread Raw
In response to Re: [pgAdmin4][Patch]: Fixed RMs #1220 & #1221  (Victoria Henry <vhenry@pivotal.io>)
List pgadmin-hackers
Hi Victoria,

On Wed, May 2, 2018 at 9:20 PM, Victoria Henry <vhenry@pivotal.io> wrote:
Hi Khushboo,

Could you write tests for this change?
We don't have any tests for these utilities, so at this point not possible to write the test cases for the same. 
These files are actually apart of the ACITree refactoring patch. If this patch was already in master the task of adding tests would be much easier.

Victoria & Joao

Thanks,
Khushboo 
On Wed, May 2, 2018 at 8:33 AM, Ashesh Vashi <ashesh.vashi@enterprisedb.com> wrote:
On Wed, May 2, 2018 at 5:56 PM, Akshay Joshi <akshay.joshi@enterprisedb.com> wrote:
Hi Khushboo

I have reviewed your code and looks good to me. Can we change the message from "The database name is inappropriate" to some meaningful message, so that user should know why it is inappropriate. If user will be able to create database with "=" in name then why Backup, Maintenance and Restore fails.  

Just curious, as I understand the problem, we're not able to able to run pg_dump/pg_restore/psql against the database, which contains '=' in the name.
Can we use PGDATABASE environment variable for them?

Of course - this tools may still fail when special characters (e.g. '=') exists in the name of the database objects (e.g. schema, table, etc).


--

Thanks & Regards,

Ashesh Vashi
EnterpriseDB INDIA: Enterprise PostgreSQL Company


http://www.linkedin.com/in/asheshvashi 


On Wed, May 2, 2018 at 3:44 PM, Khushboo Vashi <khushboo.vashi@enterprisedb.com> wrote:
Hi,

Please find the attached patch which will fix RMs # 1220 and #1221.

If the database name contains = then the backup, maintenance and restore jobs are failing.
To fix these, we will display the error message regarding inappropriate database name. 

Thanks,
Khushboo



--
Akshay Joshi
Sr. Software Architect


Phone: +91 20-3058-9517
Mobile: +91 976-788-8246



pgadmin-hackers by date:

Previous
From: Khushboo Vashi
Date:
Subject: Re: [pgAdmin4][Patch]: Fixed RMs #1220 & #1221
Next
From: Aditya Toshniwal
Date:
Subject: [pgAdmin4][RM#3238] Proper error handling when connection will belost to server.