Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iWmO8-0000oX-29 for pgsql-bugs@arkaria.postgresql.org; Mon, 18 Nov 2019 19:08:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iWmO6-00013l-HW for pgsql-bugs@arkaria.postgresql.org; Mon, 18 Nov 2019 19:08:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iWmO6-00010c-6B for pgsql-bugs@lists.postgresql.org; Mon, 18 Nov 2019 19:08:38 +0000 Received: from mail-ot1-x341.google.com ([2607:f8b0:4864:20::341]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iWmO3-0001xr-R0 for pgsql-bugs@lists.postgresql.org; Mon, 18 Nov 2019 19:08:37 +0000 Received: by mail-ot1-x341.google.com with SMTP id c19so15486080otr.11 for ; Mon, 18 Nov 2019 11:08:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=PybYyCVvyD9u9f7bh4yKK2qUqbkj4FNAXteGfXoKIxA=; b=jQYlguzq4f3wyFO/XEJrCYZngCxyAAzoOhX7NbUgVCz+RL1rW0kEqVyeNU5N1XflIx AJvNGKUhRNI2xEA6KX0CqbafAjcDNnfpbWam0PAI6oPwg6pjB9FuRQE5boHpNbISEJNb dU0xIn3WUCwR7MDMsO0/1jG2834ngJcyLavI/Hi6IrUnIrN/VxDcqh2SqIj9TxC/BzJj UdNaP+NMKlRVdRUA1xblK2b2D2+gnwz04sSDx3sh6yPDQ7aAmF+tcHEcE2RngHCOCvSO h+VOH+xpVmTfbkaHTkKVy6WfSvSeBYJLZ/54BQP0DNGX34du82Q/zVgKagPjDbEMuY1i 6ffQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=PybYyCVvyD9u9f7bh4yKK2qUqbkj4FNAXteGfXoKIxA=; b=JmNrNTOlQsc/vD6wEM0u4B7d7dLwkQZAjaPMkz7qC2dVDqelv2yEp8QgncPvQgAXs+ GLdHsDtlAT0ZpiCgZhBOah5L7FIqJU5wbOQAsmBNB7xPgHVc3TW6H+W6fTgR3Nbe7zfT 8e76I0ybu7VREDq4z66SjMexLXxYzIVqZpvgeg5euuDfyIAOs/nkWhVqePqYwuO94X8o sKurnT+rnS3qS+mXdPijGqUnqkT/ScjzV6cmdelo/AHONxuzxEt5wU/Cz7VLmDHTb/TU tE3XEmgK3oOaNgGBiEf+vxV9o6L0/ullNXhIYCoSnFPiLXk3GbjqdY2rCHzK6VQueQgk lREQ== X-Gm-Message-State: APjAAAUbnqragPoj1vUctb3GcR6ythrUJPGxPOmUWcaz76TEYTGgsedJ vWMNyVMLyn6woNncDsGEN8Hvvu/9 X-Google-Smtp-Source: APXvYqyYpOGDfZVX21jb8T7RkwEVwqHjMCTcfhAUkwi1aQKLs1m+pmsWn1U+X74v6uvox2TtGhWqwA== X-Received: by 2002:a05:6830:1211:: with SMTP id r17mr608507otp.157.1574104113354; Mon, 18 Nov 2019 11:08:33 -0800 (PST) Received: from [172.16.42.2] (104-176-6-69.lightspeed.sntcca.sbcglobal.net. [104.176.6.69]) by smtp.gmail.com with ESMTPSA id v8sm6456425oto.52.2019.11.18.11.08.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Nov 2019 11:08:32 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: BUG #16119: pg_dump omits columns specification for matviews From: Gmail X-Mailer: iPhone Mail (15E302) In-Reply-To: <3391.1573952559@sss.pgh.pa.us> Date: Mon, 18 Nov 2019 11:08:29 -0800 Cc: pgsql-bugs@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <06CC2CBF-E6A0-47A7-AFD0-90E7B1E59365@gmail.com> References: <16119-e64823f30a45a754@postgresql.org> <3391.1573952559@sss.pgh.pa.us> To: Tom Lane List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Tom, Sorry for a little delay in response, there was no email access over the wee= kend =3D) You know, everything that seems to be ugly for developer maybe 'desired' for= customer and contrary in real world. So, in our case, we're not owner or primary user of schema, only consume dat= a that is maintained by another app and there is inter-team agreement that w= e can ONLY have views in their schema, that's a cause of such 'strange' solu= tion. Thanks for a fast feedback and great job! Just a question, will the fix be back-ported to current supported branches l= ike 9.4/9.5/9.6 or only included in 12? Thank you again, Dmitry > On Nov 16, 2019, at 5:02 PM, Tom Lane wrote: >=20 > PG Bug reporting form writes: >> We've faced up with an issue how pg_dump exports materialzed views, it >> doesn't export columns declaration that is legal parameter of CREATE DDL >> instruction. >=20 > I figured out what was going wrong here and pushed a fix for it. > I'm still a bit curious about the real use-case, since a materialized > view made from just a VALUES clause seems a bit pointless. >=20 > regards, tom lane