Re: Disallowing multiple queries per PQexec()

From: Surafel Temesgen <surafel3000(at)gmail(dot)com>
To: Daniel Verite <daniel(at)manitou-mail(dot)org>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Disallowing multiple queries per PQexec()
Date: 2017-06-14 14:05:09
Message-ID: CALAY4q_eHUx=3p1QUOvabibwBvxEWGm-bzORrHA-itB7MBtd5Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Jun 12, 2017 at 5:22 PM, Daniel Verite <daniel(at)manitou-mail(dot)org>
wrote:
>
>
> PGC_POSTMASTER implies that it's an instance-wide setting.
> Is is intentional? I can understand that it's more secure for this not to
> be changeable in an existing session, but it's also much less usable if you
> can't set it per-database and per-user.
> Maybe it should be PGC_SUSET ?
>
It’s my misunderstanding I thought PGC_POSTMASTER set only by
superuser and changed with a hard restart

I attach a patch that incorporate the comments and uses similar routines
with the rest of the file rather than using command tag

Regards,

Surafel

Attachment Content-Type Size
disallow-multiple-queries-3.patch application/octet-stream 5.5 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2017-06-14 14:15:17 Re: Broken hint bits (freeze)
Previous Message Tom Lane 2017-06-14 13:44:47 Re: RemoveSubscriptionRel uses simple_heap_delete