Re: Special table names - Mailing list pgsql-novice

From Marcin Krol
Subject Re: Special table names
Date
Msg-id 4B87CE1A.9000205@gmail.com
Whole thread Raw
In response to Re: Special table names  (Michael Wood <esiotrot@gmail.com>)
Responses Re: Special table names  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Special table names  (Michael Wood <esiotrot@gmail.com>)
List pgsql-novice
Michael Wood wrote:

>
> In addition to what Andreas said, try "\dS" (and "\?").

Thanks, that's useful -- but that still doesn't let me tell where 'user'
table (view? alias?) comes from.

> You should probably use "CREATE ROLE", "ALTER ROLE", "DROP ROLE" etc.
> instead of manipulating pg_user directly.

I have no intention to do that; I just created test db via ORM called
SQLAlchemy, with table named 'user'.

Then I drop into psql, do 'select * from user' to see what's in there
and I don't see what I expected to see:

ts=# \c ts;

ts=# select * from user;
  current_user
--------------
  postgres
(1 row)


So I'm wondering if there are other special table names I should avoid.

Regards,
mk


pgsql-novice by date:

Previous
From: Michael Wood
Date:
Subject: Re: Special table names
Next
From: Tom Lane
Date:
Subject: Re: Special table names