X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 91DC9D1D996 for ; Tue, 26 Aug 2003 10:38:08 -0300 (ADT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 12752-01 for ; Tue, 26 Aug 2003 10:37:57 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 6FB71D1CE3E for ; Tue, 26 Aug 2003 10:37:50 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h7QDb55H009358; Tue, 26 Aug 2003 09:37:07 -0400 (EDT) To: "Dan Langille" Cc: pgsql-docs@postgresql.org Subject: Re: Do we need "Diagnostics" sections of SQL command reference pages? In-reply-to: <3F4B2628.2121.19C09262@localhost> References: <3F4B19B2.28737.198FE5CF@localhost> <3F4B2628.2121.19C09262@localhost> Comments: In-reply-to "Dan Langille" message dated "Tue, 26 Aug 2003 09:19:36 -0400" Date: Tue, 26 Aug 2003 09:37:04 -0400 Message-ID: <9357.1061905024@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/73 X-Sequence-Number: 1933 "Dan Langille" writes: > On 26 Aug 2003 at 9:14, Tom Lane wrote: >> http://developer.postgresql.org/docs/postgres/sql-createdatabase.html > The value I see in those message is it gives the reader more > information about what can go wrong. The above example shows that > you cannot use "create database" within a transaction. Sure, but that should have been stated in the command description. > Also, the information under "ERROR: Could not initialize database > directory." is pretty good. I chose this example deliberately, because it's one of very few pages where there's actually nontrivial content in the Diagnostics section. "could not initialize database directory" seems to me the only one of these messages that requires more info (the "could not create database directory" message now includes the kernel error code, so it's sufficiently improved IMHO). What I'm inclined to do about it is add a DETAIL field showing the exact "cp" command that failed, and perhaps a HINT suggesting that people look in the postmaster's stderr log to see cp's complaint. Not sure how to translate that to Windows, but under Unix it should be sufficient no? regards, tom lane