From 76d04205ef8d6a476502ac400218f0ce073747d4 Mon Sep 17 00:00:00 2001 From: Akshay Joshi Date: Tue, 7 Jan 2020 17:55:12 +0530 Subject: [PATCH] =?UTF-8?q?Fix=20an=20issue=20where=20the=20table=20is=20n?= =?UTF-8?q?ot=20created=20with=C2=A0autovacuum=5Fenabled=20and=C2=A0toast.?= =?UTF-8?q?autovacuum=5Fenabled=20for=20PG/EPAS=2012.=20Fixes=20#5068.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/en_US/release_notes_4_17.rst | 3 ++- .../schemas/tables/templates/tables/sql/12_plus/create.sql | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/en_US/release_notes_4_17.rst b/docs/en_US/release_notes_4_17.rst index 1830e59dd..c6a4a7603 100644 --- a/docs/en_US/release_notes_4_17.rst +++ b/docs/en_US/release_notes_4_17.rst @@ -36,4 +36,5 @@ Bug fixes | `Issue #5008 `_ - Ensure that the error message should not be displayed if Tablespace is not selected while creating the index. | `Issue #5009 `_ - Fix an issue where operator, access method and operator class is not visible for exclusion constraints. | `Issue #5013 `_ - Add a note to the documentation about the use of non-privileged ports on filesystems that don't support extended attributes when running the container. -| `Issue #5047 `_ - Added tab navigation for tabs under explain panel in query tool. \ No newline at end of file +| `Issue #5047 `_ - Added tab navigation for tabs under explain panel in query tool. +| `Issue #5068 `_ - Fix an issue where the table is not created with autovacuum_enabled and toast.autovacuum_enabled for PG/EPAS 12. \ No newline at end of file diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/templates/tables/sql/12_plus/create.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/templates/tables/sql/12_plus/create.sql index f7f7c6068..c52861b0c 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/templates/tables/sql/12_plus/create.sql +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/templates/tables/sql/12_plus/create.sql @@ -103,6 +103,8 @@ WITH ( toast.{{opt.name}} = {{opt.value}}{% endif %} {% endfor %}{% endif %} +{% if data.spcname %}){% else %});{% endif %} + {% endif %} {### SQL for Tablespace ###} {% if data.spcname %}