Port Bug Report: Backend lseeks needlessly - Mailing list pgsql-ports

From Unprivileged user
Subject Port Bug Report: Backend lseeks needlessly
Date
Msg-id 199912020531.AAA73756@hub.org
Whole thread Raw
List pgsql-ports
============================================================================
                        POSTGRESQL BUG REPORT TEMPLATE
============================================================================


Your name               : Doug Mitchell
Your email address      : doug@mitchcraft.com

Category                : runtime: back-end
Severity                : non-critical

Summary: Backend lseeks needlessly

System Configuration
--------------------
  Operating System   : RedHat Linux 6.1

  PostgreSQL version : 6.5.2

  Compiler used      : egcs-2.91.66

Hardware:
---------
i686-pc-linux-gnu

Versions of other tools:
------------------------


--------------------------------------------------------------------------

Problem Description:
--------------------
Had the backend processs simple one-record select
and update queries using index scans and watched
it with strace.

--------------------------------------------------------------------------

Test Case:
----------
Attach to running backend with
strace -p pid
and watch all the lseeks

strace -c -p pid
and count lseeks vs reads and writes



--------------------------------------------------------------------------

Solution:
---------
Probably could be handled in the storage manager,
so at least a slow system call is prevented, but
is should be fixed in the upper layers too.

--------------------------------------------------------------------------


pgsql-ports by date:

Previous
From: Walfredo Maranan
Date:
Subject: Question about code
Next
From: Patrice TROGNON
Date:
Subject: PostgreSQL on Windows NT 4 ?