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.89) (envelope-from ) id 1inqFh-000743-7g for pgsql-general@arkaria.postgresql.org; Sat, 04 Jan 2020 20:42:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1inqFe-00071T-8J for pgsql-general@arkaria.postgresql.org; Sat, 04 Jan 2020 20:42:26 +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 1inqFc-0006wA-Dz for pgsql-general@lists.postgresql.org; Sat, 04 Jan 2020 20:42:25 +0000 Received: from [66.111.4.26] (helo=out2-smtp.messagingengine.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1inqFR-0000i0-Rp for pgsql-general@postgresql.org; Sat, 04 Jan 2020 20:42:22 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 0962B21F6D; Sat, 4 Jan 2020 15:42:02 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sat, 04 Jan 2020 15:42:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:cc:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=q MF1hP7geD+AvPsaF85SUxF6hm/OYZnlSREC5XNdFys=; b=WjNfMf4G65msRFLWM 9nTFR8+9G7wUXqjWRP0TxFG10ANZzC0692WkxGTQMCg5KAVWednZlEbrvlVda//1 FxRv1WFQh1DjsfKQ8scWB9tDcCIwPEqy3ubDoJYug5IdAdG/NKU8BZtc7yqFebWC 930MWDforC/ap0EcdU9M7WGB1cele2r33e1MLFGUDQyrEY8Xf2R76/8qwOAc2fwf MmAp0Bw0m10X72fj/XBHyam3t0Z1kDsPjNdyXLmE85YpuJHYtpPVf0YQCccy7EIc MMIhCpC+SeQ398QEuzWcQSi6MKlmRlP8TYjCl/Pi3MEMhv+X5SbYqw4d/tdbVYsO 47wiw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=qMF1hP7geD+AvPsaF85SUxF6hm/OYZnlSREC5XNdF ys=; b=NTIj4kT5svuxkvNk6aDGpJrzC1cF0GZdxwoBnz+rtUnNwfSb/i0/Idvmb 2ie7T+KSffyqdhDJT8oC8dNyMIc3TZDQ/34RoGIFpDGv1LBrieUBHHmpTnqFJlMc GS1eFe59+4SgWMxvt80q1n9VpGv0FZYsRcxB4MVQPkZyjVBgV8Grs1B+59ar6Hxy 2/RS82VR/ZmQ0UFIubWY/tk35ijnqRV/RH3MUhGA+U2CKRMb2lGIrrMHz/5zighe dtqrTbIl2CR1t/b6wnZJTO4cto5EkjYBpdDa5jRJscuSveQvyL5lMe2ggcwzFooZ gycM2TGb8lxxKJI6NrOnPh6orA7Ng== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrvdeghedgudegudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenucfkphepjedurddv uddvrdduvdelrdduleefnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkh hlrghvvghrsegrkhhlrghvvghrrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from [192.168.1.10] (unknown [71.212.129.193]) by mail.messagingengine.com (Postfix) with ESMTPA id 744F93060774; Sat, 4 Jan 2020 15:42:01 -0500 (EST) Subject: Re: When should parameters be passed as text v. binary? To: Paula Kirsch References: Cc: pgsql-general From: Adrian Klaver Message-ID: <8a9aa327-7cc0-0de8-8cae-c70a3ffc1648@aklaver.com> Date: Sat, 4 Jan 2020 12:42:00 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 66.111.4.26 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 1/4/20 11:25 AM, Paula Kirsch wrote: Please reply to list also. Ccing list. > In an extended-query, my understanding is that you can choose to pass > the parameters as text or binary. I am trying to understand > https://www.postgresql.org/docs/current/protocol-flow.html#PROTOCOL-FLOW-EXT-QUERY > and > https://www.postgresql.org/docs/current/protocol-message-formats.html. > Thus the question about the benefits/detriments of passing the > parameters as binary or text. > > I am also having difficulty finding the postgresql documentation for the > data type oid to pass to explicitly type the parameters. https://www.postgresql.org/docs/11/catalog-pg-type.html > > Any suggestions or examples of parse-messages with a couple of > parameters being passed would be appreciated. > > Thank you. > > On Sat, Jan 4, 2020 at 11:18 AM Adrian Klaver > wrote: > > On 1/4/20 3:54 AM, Paula Kirsch wrote: > > I'm just trying to understand the trade-offs between sending > everything > > always as text, all integer parameters as binary, floats as > binary, etc. > >  From where to where and using what? > > > -- > Adrian Klaver > adrian.klaver@aklaver.com > -- Adrian Klaver adrian.klaver@aklaver.com