A suggestion about the usage manual of \d command - Mailing list pgsql-docs

From yuanchao zhang
Subject A suggestion about the usage manual of \d command
Date
Msg-id CAADcJZO6M3aOfkY344wQUjRiOJCgPtfiMBCtqyuFzp6o8_5nxw@mail.gmail.com
Whole thread
Responses Re: A suggestion about the usage manual of \d command
List pgsql-docs
Hi,
I created a domain object named `numeric` using the following statement: `CREATE DOMAIN numeric AS NUMERIC(12,2) DEFAULT 0 CHECK (VALUE >= 0);` After executing this SQL, it indicated that the domain was created successfully. However, when I executed `\dD` in psql, the created domain could not be displayed.

The reason is that the name I used is the same as a built-in type (of course, similar issues exist not only with domains). However, our manual for the `\dD` command lacks relevant explanations, which can mislead users. Users might think an object was successfully created, but the `\d` command doesn't display it, which could make beginners doubt whether the object was created successfully. I suggest adding necessary explanations to the `\d` command's manual.

Best regards
Yuanchao Zhang

pgsql-docs by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: Notes about COMMIT on an aborted transaction will automatically cause a rollback
Next
From: "David G. Johnston"
Date:
Subject: Re: A suggestion about the usage manual of \d command