psql bug ?

Started by José Soaresover 26 years ago4 messages
#1José Soares
jose@sferacarta.com

Psql displays twice tables, views, indices, sequences etc.

prova=> \d
Database    = prova
 +------------------+----------------------------------+----------+
 |  Owner           |             Relation             |   Type   |
 +------------------+----------------------------------+----------+
 | postgres         | aggtest1                         | table    |
 | postgres         | aggtest1                         | table    |
 | postgres         | books                            | table    |
 | postgres         | books                            | table    |
 | postgres         | patrons                          | table    |
 | postgres         | patrons                          | table    |
 | postgres         | poll                             | table    |
 | postgres         | poll                             | table    |
 | postgres         | transactions                     | table    |
 | postgres         | transactions                     | table    |
 | postgres         | vbooks                           | view?    |
 | postgres         | vbooks                           | view?    |
 +------------------+----------------------------------+----------+

prova=> select version();
version
-------------------------------------------------------------------
PostgreSQL 6.5.0 on i586-pc-linux-gnulibc1, compiled by gcc 2.7.2.1
(1 row)

Jos�

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: José Soares (#1)
Re: [HACKERS] psql bug ?

=?iso-8859-1?Q?Jos=E9?= Soares <jose@sferacarta.com> writes:

Psql displays twice tables, views, indices, sequences etc.

Not seeing that here... might be time for a rebuild and initdb?

regards, tom lane

#3Bruce Momjian
maillist@candle.pha.pa.us
In reply to: Tom Lane (#2)
Re: [HACKERS] psql bug ?

=?iso-8859-1?Q?Jos=E9?= Soares <jose@sferacarta.com> writes:

Psql displays twice tables, views, indices, sequences etc.

Not seeing that here... might be time for a rebuild and initdb?

Or perhaps there are two entries in pg_user/pg_shadow for the same name.

-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026
#4José Soares
jose@sferacarta.com
In reply to: Bruce Momjian (#3)
Re: [HACKERS] psql bug ?

Bruce Momjian ha scritto:

=?iso-8859-1?Q?Jos=E9?= Soares <jose@sferacarta.com> writes:

Psql displays twice tables, views, indices, sequences etc.

Not seeing that here... might be time for a rebuild and initdb?

Or perhaps there are two entries in pg_user/pg_shadow for the same name.

Yes, this was the cause. I don't know how but I had two users with the same
name.
Thank you.
Jos�