Re: Do we need "Diagnostics" sections of SQL command reference pages?

From: "Chris M" <chris(at)none(dot)none>
To: pgsql-docs(at)postgresql(dot)org
Subject: Re: Do we need "Diagnostics" sections of SQL command reference pages?
Date: 2003-08-27 12:51:51
Message-ID: bii98c$1pd2$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs


"Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> Write news:9357(dot)1061905024(at)sss(dot)pgh(dot)pa(dot)us(dot)(dot)(dot)
> "Dan Langille" <dan(at)langille(dot)org> 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
>

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Chris M 2003-08-27 12:54:51 Re: Changing the sequence owner
Previous Message Dan Langille 2003-08-26 18:21:00 Changing the sequence owner