pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Peter Hinse <loco@d0pefish.de>
To: pgsql-admin@postgresql.org
Subject: lseek
Date: Tue, 17 Feb 2009 21:54:59 +0100
Message-ID: <499B2423.3000809@d0pefish.de> (raw )
Hi all,
what might possibly be wrong with a database/statement what so ever, if
a strace to a postgres process shows this over several ours without
terminating?
lseek(3, 0, SEEK_END) = 0
lseek(5, 0, SEEK_END) = 8192
lseek(6, 0, SEEK_END) = 0
lseek(9, 0, SEEK_END) = 0
lseek(10, 0, SEEK_END) = 0
lseek(11, 0, SEEK_END) = 0
lseek(13, 0, SEEK_END) = 0
lseek(14, 0, SEEK_END) = 0
lseek(15, 0, SEEK_END) = 0
lseek(16, 0, SEEK_END) = 0
lseek(17, 0, SEEK_END) = 0
lseek(18, 0, SEEK_END) = 0
lseek(19, 0, SEEK_END) = 0
lseek(20, 0, SEEK_END) = 0
lseek(21, 0, SEEK_END) = 11214848
lseek(22, 0, SEEK_END) = 0
lseek(23, 0, SEEK_END) = 0
lseek(24, 0, SEEK_END) = 0
lseek(25, 0, SEEK_END) = 0
lseek(26, 0, SEEK_END) = 0
lseek(27, 0, SEEK_END) = 0
lseek(28, 0, SEEK_END) = 0
lseek(29, 0, SEEK_END) = 0
lseek(30, 0, SEEK_END) = 0
lseek(31, 0, SEEK_END) = 0
lseek(32, 0, SEEK_END) = 0
lseek(3, 0, SEEK_END) = 0
lseek(5, 0, SEEK_END) = 8192
lseek(6, 0, SEEK_END) = 0
lseek(9, 0, SEEK_END) = 0
lseek(10, 0, SEEK_END) = 0
lseek(11, 0, SEEK_END) = 0
lseek(13, 0, SEEK_END) = 0
lseek(14, 0, SEEK_END) = 0
lseek(15, 0, SEEK_END) = 0
lseek(16, 0, SEEK_END) = 0
lseek(17, 0, SEEK_END) = 0
lseek(18, 0, SEEK_END) = 0
lseek(19, 0, SEEK_END) = 0
lseek(20, 0, SEEK_END) = 0
lseek(21, 0, SEEK_END) = 11214848
More info: the statement is an INSERT with some huge subselects, running
every night on a PGSQL 8.3.6 on CentOS 4.7 x86_64. In 97% of all
occasions, the job terminates in about 1-2 minutes - however, sometimes
it just hangs. If terminated with kill <pid> and restarted, it always
terminates.
Clueless,
Peter
view thread (4+ messages) latest in thread
Message-ID: <499B2423.3000809@d0pefish.de>
Permalink: ../499B2423.3000809@d0pefish.de/
Also on: postgresql.org/message-id/499B2423.3000809@d0pefish.de
copy link · copy postgr.es
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: loco@d0pefish.de
Subject: Re: lseek
In-Reply-To: <499B2423.3000809@d0pefish.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox