Re: Low throughput of binary inserts from windows to linux - Mailing list pgsql-performance

From Axel Waggershauser
Subject Re: Low throughput of binary inserts from windows to linux
Date
Msg-id 5e66c6e90612081724m57293ffdy21d6b45697e69bd4@mail.gmail.com
Whole thread Raw
Responses Re: Low throughput of binary inserts from windows to linux  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-performance
Hi,

I have written my own 'large object'-like feature using the following table:

----
CREATE TABLE blob
(
 id bigint NOT NULL,
 pageno integer NOT NULL,
 data bytea,
 CONSTRAINT blob_pkey PRIMARY KEY (id, pageno)
)
WITHOUT OIDS;
ALTER TABLE blob ALTER COLUMN data SET STORAGE EXTERNAL;

CREATE SEQUENCE seq_key_blob;
----

One blob consist of many rows, each containing one 'page'. I insert pages with
PQexecPrepared with the format set to binary. This works quite well for the
following setups:

client  -> server
-----------------
linux   -> linux
linux   -> windows
windows -> windows

but pretty bad (meaning about 10 times slower) for this setup

windows -> linux


The used postgresql versions are 8.1.5 for both operating system. A (sort of)
minimal code sample exposing this problem may be found appended to this e-mail.

Any ideas?

Thanks,
 Axel

Attachment

pgsql-performance by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Re: How to determine if my setting for shared_buffers is too high?
Next
From: Tom Lane
Date:
Subject: Re: Low throughput of binary inserts from windows to linux