From: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | jose(at)sferacarta(dot)com (Jose' Soares) |
Cc: | pgsql-hackers(at)postgreSQL(dot)org |
Subject: | Re: [HACKERS] psql \d command |
Date: | 1998-12-11 16:38:39 |
Message-ID: | 199812111638.LAA12675@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> Hi all,
>
> I see now \d shows indexes, I tried to display index structure but it
> show the wrong
> length of fields:
>
> Table = figure
> +----------------------------------+----------------------------------+-------+
> | Field | Type |
> Length|
> +----------------------------------+----------------------------------+-------+
> | azienda | char() not null
> | 11 |
> | tipo | char() not null
> | 2 |
> | gruppo | char() not null
> | 2 |
> | inizio_attivita | date not null
> | 4 |
> | fine_attivita | date
> | 4 |
> | codice_figura | char() not null
> | 11 |
> +----------------------------------+----------------------------------+-------+
> Index: figure_pkey
> hygea=> \d figure_pkey
>
> Table = figure_pkey
> +----------------------------------+----------------------------------+-------+
> | Field | Type |
> Length|
> +----------------------------------+----------------------------------+-------+
> it should be:
> | azienda | char()
> | -4 |<<-- 11
> | tipo | char()
> | -4 |<<-- 02
> | gruppo | char()
> | -4 |<<-- 02
> | inizio_attivita | date
> | 4 |<<-- 04
> +----------------------------------+----------------------------------+-------+
Added to TODO:
* psql \d on index with char()/varchar() fields shows improper length
--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Constantin Teodorescu | 1998-12-11 16:48:17 | For the TODO list |
Previous Message | Bruce Momjian | 1998-12-11 16:25:53 | Re: [HACKERS] 6.4.1 release |