To report a bug, please complete the following form and send it by email to postgres95@postgres95.vnet.net ============================================================================ POSTGRES95 BUG REPORT TEMPLATE ============================================================================ Your name : Dr George Detlefsen Your email address : drgeorge@ilt.com System Configuration --------------------- Architecture (example: Intel Pentium) : SPARC Operating System (example: Linux 1.3.42 ELF) : Solaris .24 Postgres95 version (example: Postgres95-1.01) : Postgres95-1.01 Compiler used (example: gcc 2.7.0) : gcc 2.7.2 Please enter a FULL description of your problem: ------------------------------------------------ The following table definition entered via PSQL: create table XXX ( AAA varchar(32), BBB char(13), CCC int2, DDD int4, EEE date ); is printed by the PSQL '\d XXX' command as: Table = XXX +----------------------------------+----------------------------------+-------+ | Field | Type | Length| +----------------------------------+----------------------------------+-------+ | AAA | varchar | 32 | | BBB | char | 13 | | CCC | int2 |2 | | DDD | int4 |4 | | EEE | date |4 | +----------------------------------+----------------------------------+-------+ Please notice the shifting of the last column for 'char' and 'varchar' types Please describe a way to repeat the problem. Please try to provide a concise reproducible example, if at all possible: ---------------------------------------------------------------------- 1) define a table with a variety of columns including 'char', 'varchar', and 'int2', ... 2) print the table definition with '\d' If you know how this problem might be fixed, list the solution below: --------------------------------------------------------------------- The problem occurs at lines 335. 339, 343 in file 'src/bin/psql/psql.c' where the formatting does not match the default formatting of the 'Length' column which occurs at lines 358 and 360