Re: system catalog pg_rewrite column ev_attr document description problem

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kevin Grittner <kgrittn(at)ymail(dot)com>
Cc: Hari Babu <haribabu(dot)kommi(at)huawei(dot)com>, "'PostgreSQL-development'" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: system catalog pg_rewrite column ev_attr document description problem
Date: 2013-06-07 15:05:21
Message-ID: 23140.1370617521@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Kevin Grittner <kgrittn(at)ymail(dot)com> writes:
> Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> Actually, I think this is a bug and the right thing is to make the code
>> match the documentation not vice versa.

> I assume that this should be a 9.3 code fix, and a doc fix prior to
> that, since it would require changing catalogs and might break
> existing user queries? Should the docs mention the value used in
> each version, or be changed to just be silent on the issue?

I think the odds that any user queries are looking at that column are
pretty negligible, especially since nobody has complained about the
inaccurate documentation previously. I agree with only changing the
behavior in HEAD, just in case, but I don't see any strong reason to
jump through hoops here.

> Such a change would require a catversion bump.

Not really. There appears to be one place in ruleutils.c that would
need to be tweaked to allow either -1 or 0 (the other place already
does, so the code is inconsistent now anyhow).

> Such a change would require mention in the release notes because
> existing user queries against pg_rewrite might fail unless
> adjusted.

I would not bother with that either; seems like a waste of readers'
attention span.

> Is it worth doing that now, versus when and if the hypothetical
> change to reference a column is made?

Well, the longer we leave it as-is, the greater risk that somebody
might write code that really does depend on the bogus value.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2013-06-07 15:14:42 Re: pg_ugprade use of --check and --link
Previous Message Andres Freund 2013-06-07 14:54:00 Re: extensible external toast tuple support & snappy prototype