pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ray O'Donnell <ray@rodonnell.ie>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: PostgreSQL <pgsql-general@postgresql.org>
Subject: Re: PHP: query with parameter for SET
Date: Tue, 27 Jul 2021 18:26:05 +0100
Message-ID: <6b74789d-abc6-24e6-ccb7-ef638e6560db@rodonnell.ie> (raw)
In-Reply-To: <CAFj8pRCg75L+na+ah=BkEr2yd-05F7Npr1zjSbYw1308ULABFA@mail.gmail.com>
References: <73cf54bb-7bd8-78f2-7997-c4e7d1ac7b0c@rodonnell.ie>
	<CAFj8pRCg75L+na+ah=BkEr2yd-05F7Npr1zjSbYw1308ULABFA@mail.gmail.com>

On 27/07/2021 18:20, Pavel Stehule wrote:
> When you use client side prepared statements, then it can be possible. 
> But I don't know how it works in PHP.
> 
> Server side prepared statements are not possible in this case. "set" 
> statement has not execution plan. But you  You can use Adrian's 
> proposal, and you can prepare the query 'select set_config($1, false)'

Thanks Pavel - that makes sense.

Ray.



-- 
Raymond O'Donnell // Galway // Ireland
ray@rodonnell.ie





view thread (4+ messages)

Message-ID: <6b74789d-abc6-24e6-ccb7-ef638e6560db@rodonnell.ie>
Permalink:  ../6b74789d-abc6-24e6-ccb7-ef638e6560db@rodonnell.ie/
Also on:    postgresql.org/message-id/6b74789d-abc6-24e6-ccb7-ef638e6560db@rodonnell.ie

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ray@rodonnell.ie, pavel.stehule@gmail.com
  Subject: Re: PHP: query with parameter for SET
  In-Reply-To: <6b74789d-abc6-24e6-ccb7-ef638e6560db@rodonnell.ie>
  References: <73cf54bb-7bd8-78f2-7997-c4e7d1ac7b0c@rodonnell.ie> <CAFj8pRCg75L+na+ah=BkEr2yd-05F7Npr1zjSbYw1308ULABFA@mail.gmail.com> <6b74789d-abc6-24e6-ccb7-ef638e6560db@rodonnell.ie>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox