Re: NOT EXIST for PREPARE

From: Andres Freund <andres(at)anarazel(dot)de>
To: Yury Zhuravlev <u(dot)zhuravlev(at)postgrespro(dot)ru>
Cc: pgsql-hackers(at)postgresql(dot)org, Tatsuo Ishii <ishii(at)postgresql(dot)org>
Subject: Re: NOT EXIST for PREPARE
Date: 2016-03-22 14:05:26
Message-ID: 20160322140526.GK3790@awork2.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2016-03-22 16:51:26 +0300, Yury Zhuravlev wrote:
> Andres Freund wrote:
> >you'd still need to compare the
> >statement somehow
>
> You right, I think about that as syntax sugar. Maybe with some performance
> increase but hardly. We can save on a round trip.

If anything what'd be useful would be DEALLOCATE IF EXISTS; that'd allow
you to use prepare safely this way.

> It may be necessary to add an index on the field "statement"?

It's not an actual table, it's a view over a function.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Fujii Masao 2016-03-22 14:08:36 Re: Support for N synchronous standby servers - take 2
Previous Message Petr Jelinek 2016-03-22 13:57:06 Re: VS 2015 support in src/tools/msvc