diff options
author | Bruce Momjian <bruce@momjian.us> | 2000-07-02 22:01:27 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2000-07-02 22:01:27 +0000 |
commit | 80c646958a14ed343a686566cb77bd92961cf589 (patch) | |
tree | 1735aa969f6da1c788fac0d733de42b0efb77b03 /src/backend/utils/cache/lsyscache.c | |
parent | 6fb9d2e347b14445b85d6c97f7d16527d41ccce6 (diff) |
Attached is a new patch which addresses this problem. (oids in
regression tests).
Chris Bitmead
Diffstat (limited to 'src/backend/utils/cache/lsyscache.c')
-rw-r--r-- | src/backend/utils/cache/lsyscache.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/backend/utils/cache/lsyscache.c b/src/backend/utils/cache/lsyscache.c index 19556fce66f..58048622222 100644 --- a/src/backend/utils/cache/lsyscache.c +++ b/src/backend/utils/cache/lsyscache.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/cache/lsyscache.c,v 1.42 2000/06/08 22:37:30 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/cache/lsyscache.c,v 1.43 2000/07/02 22:00:48 momjian Exp $ * * NOTES * Eventually, the index information should go through here, too. @@ -249,6 +249,8 @@ get_attdisbursion(Oid relid, AttrNumber attnum, double min_estimate) if (attnum == ObjectIdAttributeNumber || attnum == SelfItemPointerAttributeNumber) return 1.0 / (double) ntuples; + if (attnum == TableOidAttributeNumber) + return 1.0; /* * VACUUM ANALYZE has not been run for this table. Produce an estimate |