Re: Two tables for the price of one? - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: Two tables for the price of one?
Date
Msg-id Pine.LNX.4.30.0103272133530.1215-100000@peter.localdomain
Whole thread Raw
In response to Two tables for the price of one?  (Patrick Aland <paland@stetson.edu>)
List pgsql-general
Patrick Aland writes:

> test=# \dt
> No relations found.
> test=# CREATE TABLE mytable (
> test(#   id     INT,
> test(#   stuff  VARCHAR(10)
> test(# );
> CREATE
> test=# \dt
>      List of relations
>   Name   | Type  |  Owner
> ---------+-------+----------
>  mytable | table | gmguest
>  mytable | table | postgres
> (2 rows)

Both of these users probably have the same user id. See pg_shadow.usesysid
column.  If this installation was ever subject of a backup/restore, then
this might explain things.  If there are indeed duplicate user ids,
dropping and recreating gmguest should work.

--
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/


pgsql-general by date:

Previous
From: Joel Dudley
Date:
Subject: C functions, arguments, and ssh oh my!
Next
From: Alfred Perlstein
Date:
Subject: Re: C functions, arguments, and ssh oh my!