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 A7097D1B8AC for ; Wed, 27 Aug 2003 09:52:15 -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 90639-04 for ; Wed, 27 Aug 2003 09:52:07 -0300 (ADT) Received: from news.hub.org (unknown [64.117.224.194]) by svr1.postgresql.org (Postfix) with ESMTP id C3D83D1B94F for ; Wed, 27 Aug 2003 09:52:03 -0300 (ADT) Received: from news.hub.org (host-64-117-224-194.altec1.com [64.117.224.194] (may be forged)) by news.hub.org (8.12.9/8.12.9) with ESMTP id h7RCq3em060097 for ; Wed, 27 Aug 2003 12:52:03 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id h7RCl9H0058797 for pgsql-docs@postgresql.org; Wed, 27 Aug 2003 12:47:09 GMT From: "Chris M" X-Newsgroups: comp.databases.postgresql.docs Subject: Re: Do we need "Diagnostics" sections of SQL command reference pages? Date: Wed, 27 Aug 2003 20:51:51 +0800 Organization: N/A Lines: 42 Message-ID: References: <3F4B19B2.28737.198FE5CF@localhost> <3F4B2628.2121.19C09262@localhost> <9357.1061905024@sss.pgh.pa.us> X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 To: pgsql-docs@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/80 X-Sequence-Number: 1940 "Tom Lane" Write news:9357.1061905024@sss.pgh.pa.us... > "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, Windows port may use "copy", "xcopy" to copy files. In Windows, "copy" is not so powerful as "xcopy". But I don't think using OS specific shell commands a good idea. If environment variable PATH is not set correctly, using these commands may cause a fail. > but under Unix it should be sufficient no? > > regards, tom lane > > ---------------------------(end of broadcast)--------------------------- > TIP 9: the planner will ignore your desire to choose an index scan if your > joining column's datatypes do not match >