Tom Lane wrote:
Alvaro Herrera <alvhe...@commandprompt.com> writes:
Itagaki Takahiro wrote:
Is it acceptable to use pthread in contrib module?

We don't have a precedent it seems.  I think the requirement would be
that it should compile if pthread support is not present.

Right.  Breaking it for non-pthread environments is not acceptable.

The real question here is whether it will be a problem if pgbench
delivers significantly different results when built with or without
threading support.  I can see arguents either way on that ...

well pgbench as it is now is now is more ore less unusable on modern hardware for SELECT type queries(way too slow to scale to what the backend can do thses days and the number of cores in a recent box). It is only somewhat usable on the default update heavy test as well because even there it is hitting scalability limits (ie I can easily improve on its numbers with a perl script that forks and issues the same queries). I would even go as far as issuing a WARNING if pgbench is invoked and not compiled with threads if we accept this patch...



Stefan

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to