From: | "Axel Waggershauser" <awagger(at)web(dot)de> |
---|---|
To: | pgsql-performance(at)postgresql(dot)org |
Subject: | Re: Low throughput of binary inserts from windows to linux |
Date: | 2006-12-09 01:24:13 |
Message-ID: | 5e66c6e90612081724m57293ffdy21d6b45697e69bd4@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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 | Content-Type | Size |
---|---|---|
my_lo.c | text/x-csrc | 4.3 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2006-12-09 03:52:38 | Re: Low throughput of binary inserts from windows to linux |
Previous Message | Jim C. Nasby | 2006-12-08 19:19:35 | Re: How to determine if my setting for shared_buffers is too high? |