Re: Re: Heaps of read() syscalls by the postmaster

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Matthias Urlichs <smurf(at)noris(dot)net>, Hannu Krosing <hannu(at)tm(dot)ee>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Re: Heaps of read() syscalls by the postmaster
Date: 2000-05-19 15:20:58
Message-ID: 200005191520.LAA05055@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

If we create a unique index on a column, seems we could update
pg_statistic automatically to mark it as unique.

> "Matthias Urlichs" <smurf(at)noris(dot)net> writes:
> >> Do we shrink system tables on vacuum ?
> >>
> > If the user calling the VACUUM has access rights to them, yes.
>
> But the indexes don't shrink (same problem as for user indexes).
>
> VACUUM doesn't really make any distinction between system tables and
> user tables; they're all handled the same way. IIRC, the only
> special-case in 7.0 is that it doesn't try to compute pg_statistic
> entries for pg_statistic ;-)
>
> >> It's possible that running some benchmark that creates/drops tables
> >> repetedly will blow up the size of system tables incl. pg_attribute.
>
> Yes, if you don't vacuum them every so often...
>
> But what I don't understand is why a simple INSERT is doing a sequential
> scan of pg_attribute. Presumably the parser needs to find out what the
> table's columns are ... but why isn't the catcache providing the data?
> Needs to be looked at.
>
> regards, tom lane
>

--
Bruce Momjian | http://www.op.net/~candle
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2000-05-19 15:25:49 Re: Performance (was: The New Slashdot Setup (includes MySql server))
Previous Message Hannu Krosing 2000-05-19 15:15:53 Re: Re: [SQL] Foreign keys breaks tables permissions