Re: preserving statistics settings - Mailing list pgsql-hackers

From Tom Lane
Subject Re: preserving statistics settings
Date
Msg-id 15428.1027113625@sss.pgh.pa.us
Whole thread Raw
In response to Re: preserving statistics settings  (nconway@klamath.dyndns.org (Neil Conway))
Responses Re: preserving statistics settings  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
nconway@klamath.dyndns.org (Neil Conway) writes:
> On Fri, Jul 19, 2002 at 01:28:29PM -0400, Tom Lane wrote:
>> Not sure why I didn't think of this before, but we could make the stored
>> value of attstattarget be "-1" to indicate "use the default".  Zero or a
>> positive value then indicates an explicit selection.  We can't
>> retroactively fix 7.2, but going forward we'd have a reasonable answer.

> Sounds good to me. I can implement this, unless you'd rather do it.

Go for it.  Note you should be able to remove genbki.sh's knowledge of
DEFAULT_ATTSTATTARGET, as well as all the occurrences of that symbol
in include/catalog/*.h.  Offhand I guess only analyze.c should refer
to that symbol once it's done right.
        regards, tom lane


pgsql-hackers by date:

Previous
From: nconway@klamath.dyndns.org (Neil Conway)
Date:
Subject: Re: preserving statistics settings
Next
From: reina@nsi.edu (Tony Reina)
Date:
Subject: Inheritance a burden?