BUG #14029: PgAdmin III truncates reverse engineered SQL script for a materialized vw if contains a semicolon - Mailing list pgsql-bugs

From robf.42@gmail.com
Subject BUG #14029: PgAdmin III truncates reverse engineered SQL script for a materialized vw if contains a semicolon
Date
Msg-id 20160317173956.5173.23917@wrigleys.postgresql.org
Whole thread Raw
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      14029
Logged by:          Rob Flemming
Email address:      robf.42@gmail.com
PostgreSQL version: 9.3.11
Operating system:   Windows 7 Professional
Description:

PgAdmin III truncates reverse engineered SQL script for a materialized view
if it contains a semicolon.
e.g.:
CREATE TABLE hello_tbl (txtcol text);
INSERT INTO hello_tbl VALUES ('Hello'),('World');
CREATE MATERIALIZED VIEW vw_hello AS
SELECT string_agg(txtcol, '; ') FROM hello_tbl;

A view is fine, but with the materialized view all the query after the first
semicolon is dropped.
The materialized view still produces the correct result, but the query text
is lost (unless you save it somewhere else).
Thanks!
pgAdmin Version 1.18.1

pgsql-bugs by date:

Previous
From: Robert Haas
Date:
Subject: Re: [HACKERS] pgbench -C -M prepared gives an error
Next
From: Tom Lane
Date:
Subject: Re: to_char(OF) is broken