Re: Confused About pg_* Tables

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Carlos Mennens <carlos(dot)mennens(at)gmail(dot)com>
Cc: PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: Confused About pg_* Tables
Date: 2011-10-14 20:36:17
Message-ID: 20772.1318624577@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Carlos Mennens <carlos(dot)mennens(at)gmail(dot)com> writes:
> I'm confused about how I'm able to access the following pg_* tables
> regardless of connected database. I thought these tables were hidden
> or stored in the 'postgres' database but I'm still able to access this
> data regardless of which database I'm connected to:

The underlying "pg_authid" catalog is a shared catalog that can be seen
from any database in the installation, just like pg_database. pg_user
is a view on this catalog, and so not shared in itself, but nonetheless
you'll see the same contents from every database.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bob Hatfield 2011-10-14 23:06:24 Re: pg 8.3 replication causing corruption
Previous Message Merlin Moncure 2011-10-14 20:35:24 Re: how to list or array of key value pairs