Re: using separate parameters in psql query execution - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: using separate parameters in psql query execution
Date
Msg-id 162867790912202203u1e4fda7j5e0f7ba6c39c783a@mail.gmail.com
Whole thread Raw
In response to Re: using separate parameters in psql query execution  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: using separate parameters in psql query execution  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
2009/12/21 Robert Haas <robertmhaas@gmail.com>:
> On Mon, Nov 16, 2009 at 5:01 PM, Pavel Stehule <pavel.stehule@gmail.com> wrote:
>> Hello
>>
>> now - complete patch
>>
>> ToDo:
>> * enhance a documentation (any volunteer?)
>> * check name for backslash command
>
> I read through this patch tonight and I don't understand what the
> point of this change is.  That's something that should probably be
> discussed and also incorporated into the documentation.

Do you ask about ToDo points?

I used "pexec" as switch. Probably better name is

"parametrized-execution", "send-parameters-separately" or "parametrized-queries"

general goal of this patch is removing issues with  variables quoting
- using psql variables should be more robust and more secure.

I checked second design based on enhanced syntax -
http://www.postgres.cz/index.php/Enhanced-psql#Variables_quoting . It
working too, but it needs one exec more.

Regards
Pavel

>
> ...Robert
>


pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: Proposal: Pre ordered aggregates, default ORDER BY clause for aggregates - median support
Next
From: Simon Riggs
Date:
Subject: Re: Small Bug in GetConflictingVirtualXIDs