From: PG Doc comments form <noreply@postgresql.org>
To: pgsql-docs@lists.postgresql.org
Cc: elkzwix@gmail.com
Subject: Discrepancy between the documentation and the implementation
Date: Wed, 25 Oct 2023 15:20:11 +0000
Message-ID: <169824721149.1769274.1553568436817652238@wrigleys.postgresql.org> (raw)
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/16/ecpg-sql-set-connection.html
Description:
In the documentation for Postgres 15, on page
https://www.postgresql.org/docs/15/ecpg-sql-set-connection.html, it states
that one can write:
SET CONNECTION connection_name
And under that, it talks about "connection_name" and DEFAULT, which is
supposed to be used in order to use the "default connection".
However, "SET CONNECTION DEFAULT" is treated by ECPG as a normal connection
name (looking for a connection named "DEFAULT"), not as a special keyword
meaning to go back to using the "default" connection.
Is there something I'm missing there ? The documentation is kinda
misleading, in its current form. Or is there a limitation with ECPG, which
prevents the use of DEFAULT, while it would work with other tools ?
(This is written in the same way for numerous Postgres versions, it's not
limited to version 15)
Regards,
Sylvain FRANDAZ
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 using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: noreply@postgresql.org, pgsql-docs@lists.postgresql.org, elkzwix@gmail.com
Subject: Re: Discrepancy between the documentation and the implementation
In-Reply-To: <169824721149.1769274.1553568436817652238@wrigleys.postgresql.org>
* 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