Re: PHP: query with parameter for SET

From: Ray O'Donnell <ray(at)rodonnell(dot)ie>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: PHP: query with parameter for SET
Date: 2021-07-27 17:26:05
Message-ID: 6b74789d-abc6-24e6-ccb7-ef638e6560db@rodonnell.ie
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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(at)rodonnell(dot)ie

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Marc Millas 2021-07-27 17:29:14 Re: sort order
Previous Message Pavel Stehule 2021-07-27 17:20:09 Re: PHP: query with parameter for SET