From: Mark Lilback <Mark.Lilback@mail.wvu.edu>
To: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: long delay with binary data on ubuntu and 9.4.1
Date: Wed, 13 May 2015 20:09:47 +0000
Message-ID: <67F45614-EB83-49DC-BB8B-991AF27EA88F@mail.wvu.edu> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
When executed in psql on Ubuntu 14.04 LTS (ubuntu/trusty64) the query "select bindata from rcfiledata where id = 106" hangs from 6-12 seconds before completing. On OS X, it takes a few milliseconds. This happens with the package available from postgresql.org for 9.4 and with a compiled version of 9.4.1.
All tests were with the server running on OS X. Ubuntu was running in vagrant/virtualbox. The attached filedata.sql contains a dump of the table.
The same problem happens when executed in a program using libpq.That program is included in pgtest.c. When breaking in gdb while hung, the backtrace is:
(gdb) bt
#0 0x00007ffff72ab110 in __poll_nocancel () at ../sysdeps/unix/syscall-template.S:81
#1 0x000000000040bb9e in pqSocketCheck ()
#2 0x000000000040c480 in pqWaitTimed ()
#3 0x000000000040a809 in PQgetResult ()
#4 0x000000000040aafe in PQexecFinish ()
#5 0x0000000000402c4b in main (argc=1, argv=0x7fffffffe648) at pgtest.c:9
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugsAttachments:
filedata.sql (application/octet-stream, 411.4K) download
pgtest.c (application/octet-stream, 468B) download
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: Mark.Lilback@mail.wvu.edu
Subject: Re: long delay with binary data on ubuntu and 9.4.1
In-Reply-To: <67F45614-EB83-49DC-BB8B-991AF27EA88F@mail.wvu.edu>
References: <67F45614-EB83-49DC-BB8B-991AF27EA88F@mail.wvu.edu>
* 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