Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 43C50133740B for ; Mon, 9 May 2011 18:51:23 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 42863-03 for ; Mon, 9 May 2011 21:51:05 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-vx0-f174.google.com (mail-vx0-f174.google.com [209.85.220.174]) by mail.postgresql.org (Postfix) with ESMTP id 68A30133616B for ; Mon, 9 May 2011 18:51:05 -0300 (ADT) Received: by vxi39 with SMTP id 39so6179977vxi.19 for ; Mon, 09 May 2011 14:51:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:from :date:x-google-sender-auth:message-id:subject:to:cc:content-type; bh=0E0NSai9mVVEU6OZ2oiaj9dSZ0wcBWWPbB/w0QasodI=; b=cVZacqaP3BKBTEjqN7ww9/sK3nQ6wJVXgKvTI3pf95mw7nj0HtJSUeywh/5ghwhhdy F6SbPSlgZgVTBXXBpkqCa0ViGyaTibIP8KwTrOvPU5ADO+sPOFssA0Pp1/OURHo5hqGS Igep9w3rutRWZCSpQYjvU+oGogrdgrXuKegC0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; b=DjRJo0RaYGbzuEWhIyyg9khoo0/uryBU6/HkIs4lPZpeBHcG3jr7w18/wH7ZN1+jJI TUwA7A5t7eKEGLF48d/FMNmtWMsyht7s5YyMA0FQD6AOTaT6vRanhf++2guO5KmasIva /rLaZOg20dWVo599eG41FXUD2JSYyv/VAlags= Received: by 10.52.176.228 with SMTP id cl4mr815473vdc.183.1304977865353; Mon, 09 May 2011 14:51:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.191.70 with HTTP; Mon, 9 May 2011 14:50:45 -0700 (PDT) In-Reply-To: References: From: Aren Cambre Date: Mon, 9 May 2011 16:50:45 -0500 X-Google-Sender-Auth: wifAwkEn_wEScMR4LAnpE6_PqAs Message-ID: Subject: Re: Postgres refusing to use >1 core To: Merlin Moncure Cc: pgsql-performance@postgresql.org Content-Type: multipart/alternative; boundary=bcaec5015d151aa84c04a2ded6fa X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.897 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RFC_ABUSE_POST=0.001 X-Spam-Level: X-Archive-Number: 201105/95 X-Sequence-Number: 43604 --bcaec5015d151aa84c04a2ded6fa Content-Type: text/plain; charset=ISO-8859-1 > > Are you sure you are really using > 1 connection? While your test is > running, log onto postgres with psql and grab the output of > pg_stat_activity a few times. What do you see? > Thanks. If a connection corresponds to a process, then this suggests I am using 1 connection for my main thread, and all the threads it spawns are sharing another connection. Aren --bcaec5015d151aa84c04a2ded6fa Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Are you sure you= are really using > 1 connection? =A0While your test is
running, log onto postgres with psql and grab the output of
pg_stat_activity a few times. =A0What do you see?

=
Thanks. If a connection corresponds to a process, then this sugg= ests I am using 1 connection for my main thread, and all the threads it spa= wns are sharing another connection.

Aren
--bcaec5015d151aa84c04a2ded6fa--