Search Postgresql Archives

Re: libpq: What can and cannot be bound? How to know?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jun 21, 2023 at 6:09 AM Dominique Devienne <ddevienne@xxxxxxxxx> wrote:

I'm sure there are good technical reason. But from the outside, it is surprising and a bit inconsistent.


The planner is the thing that handles binds.  The only things that are planned are queries - i.e., SQL commands that are capable of producing result sets from data within tables.  I agree this seems like it should be documented in places besides PREPARE.

Reworking that core design choice doesn't seem like a great use of time.  Especially when alternatives exist.  Specifically, the pg_notify function that can be parameterized and handles the SQL-injection stuff for you.

David J.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux