On Mon, Sep 16, 2019 at 01:12:17PM +0200, Peter Eisentraut wrote: > Moreover, I've been wondering about the behavior detail given in the > table at > <https://www.postgresql.org/docs/devel/ecpg-sql-declare-statement.html>. > In scenario 3, the declare statement says con1 but the subsequent > dynamic statement says con2, and as a result of that, con1 is used. > This is not intuitive, I'd say, but given that there is no indication of > where this statement came from or whose idea it follows, it's unclear > how to evaluate that.
FYI, I was totally confused by this also when researching this for the PG 12 release notes. I am glad we are going to redo it for PG 13. -- Bruce Momjian <br...@momjian.us> http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription +