RE: Re: Heaps of read() syscalls by the postmaster - Mailing list pgsql-hackers

From Hiroshi Inoue
Subject RE: Re: Heaps of read() syscalls by the postmaster
Date
Msg-id 000601bfc179$9f71c460$2801007e@tpf.co.jp
Whole thread Raw
In response to Re: Re: Heaps of read() syscalls by the postmaster  ("Matthias Urlichs" <smurf@noris.net>)
Responses Re: Re: Heaps of read() syscalls by the postmaster  ("Matthias Urlichs" <smurf@noris.net>)
List pgsql-hackers
> -----Original Message-----
> From: pgsql-hackers-owner@hub.org [mailto:pgsql-hackers-owner@hub.org]On
> Behalf Of Matthias Urlichs
> 
> Hi,
> 
> short add-on:
> 
> > The table has been created (via Perl) thusly:
> > [...]
> 
> i.e., 450 or so read() calls per request, apparently serially scannign
> for somethign or other:
> 
> $ strace -e lseek -p -pid-of-postmaster
> lseek(13, 0, SEEK_SET)                  = 0
> lseek(13, 8192, SEEK_SET)               = 8192
> lseek(13, 16384, SEEK_SET)              = 16384
> lseek(13, 24576, SEEK_SET)              = 24576
> lseek(13, 32768, SEEK_SET)              = 32768
> lseek(13, 40960, SEEK_SET)              = 40960
> lseek(13, 49152, SEEK_SET)              = 49152
> lseek(13, 57344, SEEK_SET)              = 57344
> lseek(13, 65536, SEEK_SET)              = 65536
> lseek(13, 73728, SEEK_SET)              = 73728
> lseek(13, 81920, SEEK_SET)              = 81920
> lseek(13, 90112, SEEK_SET)              = 90112
> lseek(13, 98304, SEEK_SET)              = 98304
> lseek(13, 106496, SEEK_SET)             = 106496
> lseek(13, 114688, SEEK_SET)             = 114688
> 

This seems to scan a system table(pg_index ?).
There are some(many?) places where indexes aren't
(or couldn't be) used to scan system tables.
Must we avoid sequential scan for system tables as possible ?

Comments ?

Regards.

Hiroshi Inoue
Inoue@tpf.co.jp


pgsql-hackers by date:

Previous
From: Chris
Date:
Subject: Re: Performance (was: The New Slashdot Setup (includes MySql server))
Next
From: "Matthias Urlichs"
Date:
Subject: Re: Re: Heaps of read() syscalls by the postmaster