From: Tom Lane <tgl@sss.pgh.pa.us>
To: Duncan Sands <duncan.sands@deepbluecap.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: pg_catalog.pg_get_viewdef pretty-print removes important parentheses
Date: Thu, 01 Dec 2022 10:37:05 -0500
Message-ID: <1581700.1669909025@sss.pgh.pa.us> (raw)
In-Reply-To: <f41566aa-a057-6628-4b7c-b48770ecb84a@deepbluecap.com>
References: <f41566aa-a057-6628-4b7c-b48770ecb84a@deepbluecap.com>
Duncan Sands <duncan.sands@deepbluecap.com> writes:
> When pg_catalog.pg_get_viewdef is called with pretty-print enabled, it removes
> parentheses around (DATE + INTERVAL) in the construct "(DATE + INTERVAL) AT TIME
> ZONE TZ", outputting SQL that fails to parse.
So it does :-(. Will fix, thanks for the report!
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, duncan.sands@deepbluecap.com, pgsql-bugs@lists.postgresql.org
Subject: Re: pg_catalog.pg_get_viewdef pretty-print removes important parentheses
In-Reply-To: <1581700.1669909025@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox