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 1hY8nx-00042a-CF for pgsql-general@arkaria.postgresql.org; Tue, 04 Jun 2019 12:44:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hY8nw-0004RI-9K for pgsql-general@arkaria.postgresql.org; Tue, 04 Jun 2019 12:44:40 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hY8nv-0004RA-TF for pgsql-general@lists.postgresql.org; Tue, 04 Jun 2019 12:44:40 +0000 Received: from mail.wordtothewise.com ([104.225.223.158]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hY8nt-0007ke-MS for pgsql-general@lists.postgresql.org; Tue, 04 Jun 2019 12:44:38 +0000 Received: from [10.214.135.128] (unknown [217.173.105.122]) by mail.wordtothewise.com (Postfix) with ESMTPSA id E97899F146 for ; Tue, 4 Jun 2019 05:44:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wordtothewise.com; s=aardvark; t=1559652277; bh=ylxTDpJS61j2qlvliUujGNYPS3t84wdJxiurIM31tQ0=; h=From:Subject:Date:References:To:In-Reply-To:From; b=iAvNwetBhlPUv4k5p7XqgQGRwOCT7tRBdK98B5KH33BuDmkM0kiQNtfYgQTqTDwSL ZZhtwIMc9V2MGReNQAr29kOdutffph+aiYafri4kL+r5ZJ6tuShGil0bUjm7fVKAN1 dCY6ubjOreFpdfeWjCEcFfo61s6r2W0X6cceSw3Q= From: Steve Atkins Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\)) Subject: Re: Research on ?? operators Date: Tue, 4 Jun 2019 13:44:34 +0100 References: <4b588eb1-a3af-3e25-c1f1-16fb93e602e3@beccati.com> <9e74ec66-8fbf-a2b1-dbde-c6808ded6a94@beccati.com> To: PG mailing List In-Reply-To: Message-Id: <3C01A915-4C26-4803-81BD-2F68B304019F@blighty.com> X-Mailer: Apple Mail (2.3445.104.8) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Jun 4, 2019, at 1:35 PM, Michael Lewis wrote: >=20 > ":foo" named placeholders >=20 > If I may, is this supported natively in Postgres prepared statements? It's not. The only type we support are numbered $1 type placeholders. > Can I see an example? I do not care much for the numbers of positional = placeholders and would love to use names instead if possible. It'd be nice. They're supported via rewriting at the driver level in = some drivers, and I've written shims to convert them in an app a few = times and it makes for much more readable - and bug-resistant - code. Supporting it at the protocol level would be very nice. Cheers, Steve=