Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jCUgD-0002X9-L2 for pgsql-performance@arkaria.postgresql.org; Thu, 12 Mar 2020 20:43:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jCUgC-0004Rj-I8 for pgsql-performance@arkaria.postgresql.org; Thu, 12 Mar 2020 20:43:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jCUgC-0004Rc-4S for pgsql-performance@lists.postgresql.org; Thu, 12 Mar 2020 20:43:44 +0000 Received: from mail-qk1-x743.google.com ([2607:f8b0:4864:20::743]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jCUg8-0001oJ-Of for pgsql-performance@postgresql.org; Thu, 12 Mar 2020 20:43:43 +0000 Received: by mail-qk1-x743.google.com with SMTP id f28so8657614qkk.13 for ; Thu, 12 Mar 2020 13:43:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=coySnZIWtenDrgYSkmLVDVE75C0U2mfKq+X8NQEwp4g=; b=AJuiVMP6XONKS9Qrb9Qub+xAlrrYR3boK/l1+pw+AOBHeqL8Cav5G0RoKFmb4o0+zN LdEm7TpNjB3Ga0bDztU03b43kQ/aEmuJt3XtQECBpAl6Cf9efPGeLqtXCnfyUWUCKVwK ybvjanCrsRue3gZctXAwznW22I4rjMZIWm6ZpqO/UN/DWU0+mxFivNUgMZC8CZssAPRp Ht3lNjAcp1Be6sFFVd90wDqK/LKX4cWCHRiOuu6LNtJlOl1gcxOTQQQyIoa8jyxWJBxw vi059lrKfHeL2bl+9VWBjJge5uMy92JN3nz1fiSVjzuG1l7OUvrLWfQe2thjP/ehMFPz 89+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=coySnZIWtenDrgYSkmLVDVE75C0U2mfKq+X8NQEwp4g=; b=K8EzWb6qvH4esw4PCEQSLu7iTfBCIbLn/KwlUoFQHr7iix2txU+h4MmmkYuM91PspE qL3k/Ri6n310CsEjK/4gOGy/WAk8+sgvf67hiRMRU+VpPd9kwj1u97A4jOivR4h94Evx 056Fn0B80VLoPJD87yiJAa7RKoHEiG56hU6G3Cazk1HzR+A/lSy4ju0Jbyf1VDll4iCC zAc4tyvLXkSXmG0CIfkYmFa/fJicgO9+Z9H3zsAGCz3a25VRDlxodLsNsXchnhIVNHx6 4tK1gmcNM4iXULc5SI+thpncOAgB1kmhiEkI8ZsKIYEpO76Ozj24FQ5af2/CjYUtqp06 9JMg== X-Gm-Message-State: ANhLgQ1wZFLcgIzFRFtjKTY8hBwnvsLiGa57zlwPZtjfAWKkjINkrer7 JA8kvmDlmXXBIoSaFE8FCTVwGg== X-Google-Smtp-Source: ADFU+vtz2co+G0uoiuxS+wi9Rpamu/zhgbcKbhXtJYDYyW91xygQ7Wif05Zbxb6gacy3NYrmDKQbrg== X-Received: by 2002:a05:620a:110c:: with SMTP id o12mr9584484qkk.87.1584045819015; Thu, 12 Mar 2020 13:43:39 -0700 (PDT) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id e2sm28170677qkb.112.2020.03.12.13.43.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Mar 2020 13:43:38 -0700 (PDT) Received: by pryzbyj (Postfix, from userid 1000) id 6B78B800719; Thu, 12 Mar 2020 15:43:36 -0500 (CDT) Date: Thu, 12 Mar 2020 15:43:36 -0500 From: Justin Pryzby To: Richard Michael Cc: pgsql-performance@postgresql.org Subject: Re: Slow ext'd query via client native implementation vs. libpq & simple psql Message-ID: <20200312204336.GE29065@telsasoft.com> References: <20200311215921.GZ29065@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, Mar 12, 2020 at 04:27:54PM -0400, Richard Michael wrote: > > psql can't do it, but pygres can do it since last year. > > Thank you for mentioning it. Do you mean this: > https://github.com/rogamba/pygres ? Ugh, no. I'm referring to PyGreSQL, which was at one point a part of the postgres source tree. https://www.pygresql.org/ $ python -c "import pg; print(pg.DB('postgres').query('SELECT 1').getresult())" [(1,)] $ python -c "import pg; p=pg.DB('postgres'); p.prepare('q', 'SELECT 1'); print(p.query_prepared('q').getresult())" [(1,)] -- Justin (I'm having trouble believe someone made a project called "pygres", which uses python, postgres, and psycopg... Will mail D'Arcy)