Re: Low performance on Windows problem - Mailing list pgsql-performance

From Merlin Moncure
Subject Re: Low performance on Windows problem
Date
Msg-id 6EE64EF3AB31D5448D0007DD34EEB3417DD31A@Herge.rcsinc.local
Whole thread Raw
In response to Low performance on Windows problem  (Dalibor Sramek <dali@insula.cz>)
Responses Re: Low performance on Windows problem  (Dalibor Sramek <dali@insula.cz>)
List pgsql-performance
> Did you run the select remotely on a Windows server?

yes.

> Yes the server load is practically 0. Note the difference between
local
> and
> remote execution of the command. I think you are right about the
network
> problem possibility. But it is bound to PostgreSQL. MySQL on the same
> machine (and same database content) had no problem.
>
> So are there any known issues with PostgreSQL on Windows sending data
to
> remote hosts connected via ODBC?
> What should I do to find out more debug info?

1. turn on all your logging and make sure we looking at the right place
(planner stats, etc).
2. run explain analyze and compare timings (which returns only explain
output).
3. do a select max(patternxml) test.t_umlpattern and observe the time.
4. do a select substr(patternxml, 1, 10) from test.t_umlpattern and
observe the time.
5. do select array_accum(q::text) from generate_series(1,10000) q;

if array_accum errors out, do:

CREATE AGGREGATE public.array_accum (
    sfunc = array_append,
    basetype = anyelement,
    stype = anyarray,
    initcond = '{}'
);

and observe the time.

Merlin

pgsql-performance by date:

Previous
From: Dalibor Sramek
Date:
Subject: Re: Low performance on Windows problem
Next
From: "Kevin Grittner"
Date:
Subject: Re: Low performance on Windows problem