From: grb@skogoglandskap.no
To: pgsql-bugs@postgresql.org
Subject: BUG #13495: Postgres documentation consistently teaches 'bad' practice
Date: Thu, 09 Jul 2015 09:52:59 +0000
Message-ID: <20150709095259.15754.83737@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 13495
Logged by: Graeme Bell
Email address: grb@skogoglandskap.no
PostgreSQL version: 9.3.9
Operating system: Linux
Description:
Relates to a current thread on pgsql-performance.
The postgres documentation presently teaches bad practice to new programmers
by failing to use function volatility categories in examples throughout
most/all of the documentation.
Consequently, many new and existing PG users are writing code that performs
poorly and doesn't scale at all, and don't even know it.
For example: count the uses of volatility classes on these pages.
http://www.postgresql.org/docs/9.3/static/plpgsql-structure.htmlhttp://www.postgresql.org/docs/9.3/static/plpgsql-declarations.html#PLPGSQL-DECLARATION-PARAMETERS
Proposed solution:
This issue is absolutely critical for performance and scalability of code,
therefore all of the PG example functions, particularly in the first few
chapters of the documentation, could be altered to demonstrate correctly
written code in terms of good practice for performance and scability.
My feeling is that good practice should be naturally acquired by the reader
as they read the first 20 pages of the manual.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: grb@skogoglandskap.no
Subject: Re: BUG #13495: Postgres documentation consistently teaches 'bad' practice
In-Reply-To: <20150709095259.15754.83737@wrigleys.postgresql.org>
References: <20150709095259.15754.83737@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