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 1gXlig-0006b9-Se for pgsql-general@arkaria.postgresql.org; Fri, 14 Dec 2018 11:33:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gXlif-0002Lb-Id for pgsql-general@arkaria.postgresql.org; Fri, 14 Dec 2018 11:33:25 +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 1gXlif-0002JH-43 for pgsql-general@lists.postgresql.org; Fri, 14 Dec 2018 11:33:25 +0000 Received: from forward106o.mail.yandex.net ([2a02:6b8:0:1a2d::609]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gXlic-0006ln-QE for pgsql-general@lists.postgresql.org; Fri, 14 Dec 2018 11:33:24 +0000 Received: from mxback13j.mail.yandex.net (mxback13j.mail.yandex.net [IPv6:2a02:6b8:0:1619::88]) by forward106o.mail.yandex.net (Yandex) with ESMTP id 85FEC5062435 for ; Fri, 14 Dec 2018 14:33:20 +0300 (MSK) Received: from smtp4p.mail.yandex.net (smtp4p.mail.yandex.net [2a02:6b8:0:1402::15:6]) by mxback13j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 0NH7TRFhc5-XKTKpk3u; Fri, 14 Dec 2018 14:33:20 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1544787200; bh=NPtTz0yUPh3iZcBouhEWc2EVfFs1s3SyoN5Uojchhqc=; h=Date:From:To:Subject:Message-ID:Reply-To; b=q9bFefwu6ecfinLLZSrdT8qMWTe2YGEJOT7NGvcujACZRkFcm67bCD54EDJZOlRtZ VykgjHEWYa1viS4nfws5M+03dV6noFb5WCBxrFl7V8hCvKx+vxVTd70LsZuw1f8VG/ RbWvfB3XeP81P01ISdFxFCgHY01oX0CodEF6oPZg= Received: by smtp4p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id i0X3IhVjn5-XJkW6UkY; Fri, 14 Dec 2018 14:33:19 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1544787199; bh=NPtTz0yUPh3iZcBouhEWc2EVfFs1s3SyoN5Uojchhqc=; h=Date:From:To:Subject:Message-ID:Reply-To; b=R9Z+CiT6QKw84TpM3PIlEESs64SJB5qeZzGkmW0ZlXii+Z0xL29kkkddbKuf2Dxoo HApIgBaZsjlqtptB0i+x2DknOnThwVqh8QkabaSBdrTss4/EwP8oG5/idX45yML2u8 War6hKKyKh6eTOIVIwbjWXqJq22oU3r70QloN2Ws= Authentication-Results: smtp4p.mail.yandex.net; dkim=pass header.i=@yandex.ru Date: Fri, 14 Dec 2018 14:33:38 +0300 From: Oleg To: pgsql-general@lists.postgresql.org Subject: libpq PQexecParams & value placeholders Message-ID: <20181214113338.GA4644@legohost> Reply-To: Oleg MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.11.1 (2018-12-01) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, all. Do we really need a numeric value placeholders like $1 in command string? Construction of such string for complex non-static queries is very annoying. Why do we can't simply use $$ placeholder, which take the next value from an array of values? -- Олег Неманов (Oleg Nemanov)