Re: [pgAdmin4][Patch] - RM 3836 VACUUM FULL FREEZE ANALYZE VERBOSEsyntax error on PostgreSQL 11 - Mailing list pgadmin-hackers
From | Akshay Joshi |
---|---|
Subject | Re: [pgAdmin4][Patch] - RM 3836 VACUUM FULL FREEZE ANALYZE VERBOSEsyntax error on PostgreSQL 11 |
Date | |
Msg-id | CANxoLDdYep1dPq1Jni6zsb6eOnSOdBH3pJ1wNU-yLoYzEpaD1g@mail.gmail.com Whole thread Raw |
In response to | Re: [pgAdmin4][Patch] - RM 3836 VACUUM FULL FREEZE ANALYZE VERBOSEsyntax error on PostgreSQL 11 (Dave Page <dpage@pgadmin.org>) |
Responses |
Re: [pgAdmin4][Patch] - RM 3836 VACUUM FULL FREEZE ANALYZE VERBOSEsyntax error on PostgreSQL 11
|
List | pgadmin-hackers |
Hi
Attached is the modified patch. I have fixed the similar code for Backup and Restore as well along with this patch.
On Thu, Jan 10, 2019 at 12:26 PM Dave Page <dpage@pgadmin.org> wrote:
HiOn Wed, Jan 9, 2019 at 6:46 PM Akshay Joshi <akshay.joshi@enterprisedb.com> wrote:Hi Hackers,Attached is the patch to fix RM #3836 VACUUM FULL FREEZE ANALYZE VERBOSE syntax error on PostgreSQL 11. Order of commands has been changed in PostgreSQL 11 "https://github.com/postgres/postgres/commit/921059bd66c7fb1230c705d3b1a65940800c4cbb"Please review it.I tried to test this, and got what looks like the same issue that we looked at the other day with Import/Export. Can you look at it please?2019-01-10 12:25:02,044: INFO werkzeug: 127.0.0.1 - - [10/Jan/2019 12:25:02] "POST /maintenance/job/2/12669 HTTP/1.1" 500 -2019-01-10 12:25:02,051: ERROR werkzeug: Error on request:Traceback (most recent call last):File "/Users/dpage/.virtualenvs/pgadmin4/lib/python3.6/site-packages/werkzeug/serving.py", line 270, in run_wsgiexecute(self.server.app)File "/Users/dpage/.virtualenvs/pgadmin4/lib/python3.6/site-packages/werkzeug/serving.py", line 258, in executeapplication_iter = app(environ, start_response)File "/Users/dpage/.virtualenvs/pgadmin4/lib/python3.6/site-packages/flask/app.py", line 1997, in __call__return self.wsgi_app(environ, start_response)File "/Users/dpage/.virtualenvs/pgadmin4/lib/python3.6/site-packages/flask/app.py", line 1985, in wsgi_appresponse = self.handle_exception(e)File "/Users/dpage/.virtualenvs/pgadmin4/lib/python3.6/site-packages/flask/app.py", line 1540, in handle_exceptionreraise(exc_type, exc_value, tb)File "/Users/dpage/.virtualenvs/pgadmin4/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraiseraise valueFile "/Users/dpage/.virtualenvs/pgadmin4/lib/python3.6/site-packages/flask/app.py", line 1982, in wsgi_appresponse = self.full_dispatch_request()File "/Users/dpage/.virtualenvs/pgadmin4/lib/python3.6/site-packages/flask/app.py", line 1614, in full_dispatch_requestrv = self.handle_user_exception(e)File "/Users/dpage/.virtualenvs/pgadmin4/lib/python3.6/site-packages/flask/app.py", line 1517, in handle_user_exceptionreraise(exc_type, exc_value, tb)File "/Users/dpage/.virtualenvs/pgadmin4/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraiseraise valueFile "/Users/dpage/.virtualenvs/pgadmin4/lib/python3.6/site-packages/flask/app.py", line 1612, in full_dispatch_requestrv = self.dispatch_request()File "/Users/dpage/.virtualenvs/pgadmin4/lib/python3.6/site-packages/flask/app.py", line 1598, in dispatch_requestreturn self.view_functions[rule.endpoint](**req.view_args)File "/Users/dpage/.virtualenvs/pgadmin4/lib/python3.6/site-packages/flask_login.py", line 792, in decorated_viewreturn func(*args, **kwargs)File "/Users/dpage/git/pgadmin4/web/pgadmin/tools/maintenance/__init__.py", line 179, in create_maintenance_jobdata = json.loads(data['data'][0], encoding='utf-8')File "/Users/dpage/.virtualenvs/pgadmin4/lib/python3.6/site-packages/simplejson/__init__.py", line 535, in loadsreturn cls(encoding=encoding, **kw).decode(s)File "/Users/dpage/.virtualenvs/pgadmin4/lib/python3.6/site-packages/simplejson/decoder.py", line 370, in decodeobj, end = self.raw_decode(s)File "/Users/dpage/.virtualenvs/pgadmin4/lib/python3.6/site-packages/simplejson/decoder.py", line 400, in raw_decodereturn self.scan_once(s, idx=_w(s, idx).end())simplejson.errors.JSONDecodeError: Expecting property name enclosed in double quotes or '}': line 1 column 2 (char 1)--Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Akshay Joshi
Sr. Software Architect

Phone: +91 20-3058-9517
Mobile: +91 976-788-8246
Mobile: +91 976-788-8246
Attachment
pgadmin-hackers by date: