pg.ddx.io pgsql-general@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Christoph Moench-Tegeder <cmt@burggraben.net>
To: pgsql-general@lists.postgresql.org
Subject: Re: rw_redis_fdw: SQL Errors when statement is within a function
Date: Thu, 25 Oct 2018 23:57:49 +0200
Message-ID: <20181025215749.6yy3aparryceuker@squirrel.exwg.net> (raw)
In-Reply-To: <CADep2PN_T+frUJG07oKRJ0DfUALuuoaSbvKq_nposNNaSWjX2w@mail.gmail.com>
References: <CADep2PPVOo68kRsC0yDF0X_neUGd8pduTKnmyDp0RSaDajTuEg@mail.gmail.com>
<20181025101948.r2hsnsm2ysn7q3ic@alap3.anarazel.de>
<CADep2PN_T+frUJG07oKRJ0DfUALuuoaSbvKq_nposNNaSWjX2w@mail.gmail.com>
## GPT (gptmailinglists@gmail.com):
> So, this kind of switch after a few goes is a normal behavior or
> something unexpected which will change in future?
It's expected, and even documented (when you look at the user-level
interface):
https://www.postgresql.org/docs/current/static/sql-prepare.html
Prepared statements can use generic plans rather than re-planning
with each set of supplied EXECUTE values. This occurs immediately
for prepared statements with no parameters; otherwise it occurs
only after five or more executions produce plans whose estimated
cost average (including planning overhead) is more expensive than
the generic plan cost estimate.
Regards,
Christoph
--
Spare Space.
view thread (25+ messages) latest in thread
Message-ID: <20181025215749.6yy3aparryceuker@squirrel.exwg.net> Permalink: ../20181025215749.6yy3aparryceuker@squirrel.exwg.net/ Also on: postgresql.org/message-id/20181025215749.6yy3aparryceuker@squirrel.exwg.net ·
reply
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Reply to all the recipients from your mail client; the link fills in the headers below: reply via email Some clients, webmail especially, drop In-Reply-To and References from a link, and the reply then starts a new thread: use the mbox below. To: pgsql-general@postgresql.org Cc: cmt@burggraben.net Subject: Re: rw_redis_fdw: SQL Errors when statement is within a function In-Reply-To: <20181025215749.6yy3aparryceuker@squirrel.exwg.net> References: <CADep2PPVOo68kRsC0yDF0X_neUGd8pduTKnmyDp0RSaDajTuEg@mail.gmail.com> <20181025101948.r2hsnsm2ysn7q3ic@alap3.anarazel.de> <CADep2PN_T+frUJG07oKRJ0DfUALuuoaSbvKq_nposNNaSWjX2w@mail.gmail.com> <20181025215749.6yy3aparryceuker@squirrel.exwg.net> * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox