Re: Reg:sql command

From: Gnanavel S <s(dot)gnanavel(at)gmail(dot)com>
To: Sivakumar K <sivakumark(at)aztec(dot)soft(dot)net>
Cc: postgre <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Reg:sql command
Date: 2005-08-24 11:52:00
Message-ID: eec3b03c050824045242d25a64@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 8/24/05, Sivakumar K <sivakumark(at)aztec(dot)soft(dot)net> wrote:
>
> Oliver,
> How should I use this?
> I tried this way but of no use.
> psql -E -U siva -d template1 -c \d test (test is a table in template1)

add the missing quotes
psql -E -U siva -d template1 -c "\d test"

Am I missing anything here?
> Regards,
> Siva Kumar.K
>
> -----Original Message-----
> From: Oliver Elphick [mailto:olly(at)lfix(dot)co(dot)uk]
> Sent: Wednesday, August 24, 2005 2:47 PM
> To: sandhya
> Cc: postgre; Sivakumar K
> Subject: Re: [ADMIN] Reg:sql command
>
> On Wed, 2005-08-24 at 11:50 +0530, sandhya wrote:
> > Hi,
> > Is there any equivalent command for '\d tablename'.
> > Inorder to get the table structure is there any SQL query in postgres?
> >
> use psql -E to see the SQL commands that are used to implement \d and
> other such commands.
>
> --
> Oliver Elphick olly(at)lfix(dot)co(dot)uk
> Isle of Wight http://www.lfix.co.uk/oliver
> GPG: 1024D/A54310EA 92C8 39E7 280E 3631 3F0E 1EC0 5664 7A2F A543 10EA
> ========================================
> Do you want to know God? http://www.lfix.co.uk/knowing_god.html
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faq
>

--
with regards,
S.Gnanavel
Satyam Computer Services Ltd.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Erol Oz 2005-08-24 12:29:57 ERROR: _mdfd_getrelnfd: cannot open relation pg_class: No such file or directory
Previous Message Sivakumar K 2005-08-24 09:55:03 Re: Reg:sql command