Re: Improvements in prepared statements

From: Alejandro Sánchez <alex(at)nexttypes(dot)com>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Improvements in prepared statements
Date: 2021-03-01 17:18:07
Message-ID: c00d1a2f30c8ac2cf1329b289be1abe96237d202.camel@nexttypes.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I have already implemented this in my Java project with some kind of
SQL preprocessor. I leave the idea here in case more people are
interested and PostgreSQL developers findit convenient to include it.
It is just string concatenation but it is a sintactic sugar very useful
in any SQL application.
El lun, 01-03-2021 a las 17:35 +0100, Pavel Stehule escribió:
> Hi
>
> po 1. 3. 2021 v 17:26 odesílatel Alejandro Sánchez <
> alex(at)nexttypes(dot)com> napsal:
> > It is a matter of taste. I think this functionality would be better
> > in SQLand be the same for all languages without the need to use
> > string functions.
>
> You can try to implement it, and send a patch. But I think a) it will
> be just string concatenation, and then it is surely useless, or b)
> you should introduce a new parser, because current parser need to
> know SQL identifiers immediately. But anyway - anybody can write
> your opinion here. From me - I don't like this idea.
>
> Regards
> Pavel

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Mark Dilger 2021-03-01 17:26:03 Re: Add --tablespace option to reindexdb
Previous Message Pavel Stehule 2021-03-01 16:35:34 Re: Improvements in prepared statements