Before this fix, a negative constant in a view or rule
might be dumped as, say, -42::integer, which is subtly incorrect: it
should be (-42)::integer due to
operator precedence rules. Usually this would make little
difference, but it could interact with another recent patch
to cause PostgreSQL to
reject what had been a valid SELECT
DISTINCT view query. Since this could result in
pg_dump output failing to
reload, it is being treated as a high-priority fix. The
only released versions in which dump output is actually
incorrect are 8.3.1 and 8.2.7.

Add Comment

Please use this form to add your own comments regarding your experience with
particular features of PostgreSQL, clarifications of the documentation, or
hints for other users. Please note, this is not a support
forum, and your IP address will be logged. If you have a question or need help,
please see the faq, try a
mailing list, or join
us on IRC.
Note that submissions containing URLs or other keywords commonly found in
'spam' comments may be silently discarded. Please contact the
webmaster if you think this
is happening to you in error.