[PATCH] psql visibility clarification patch

From: "D(dot) Hageman" <dhageman(at)dracken(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: [PATCH] psql visibility clarification patch
Date: 2003-01-23 20:45:30
Message-ID: Pine.LNX.4.50.0301231438260.999-200000@moko.dracken.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers


Attached is a patch that I would like to submit for discussion.
The goal of this patch is a solution to the issue that I found concerning
table visibility. The problem with the way psql currently lists tables in
a database is that it limits it to only the tables currently in the search
path. If it isn't visible, then you will never see the table. This can
cause problems for a person that is trying to learn a database for the
first time or something along those lines unless they are familiar with
the pg_catalog. I think a better solution to handling the issue of
visibility is shown below. It will list all of the tables of the database
and show another column to give indication of the visibility of the table.

eecs=> \d
List of relations
Schema | Name | Type | Visible | Owner
------------+------------------------+----------+---------+-------
term_029 | schedule | table | f | dba
term_029 | schedule_preceptor | table | f | dba
term_029 | schedule_preceptor_seq | sequence | f | dba
term_029 | schedule_seq | sequence | f | dba
term_029 | schedule_student | table | f | dba
term_029 | schedule_student_seq | sequence | f | dba
term_032 | schedule | table | t | dba
term_032 | schedule_preceptor | table | t | dba
term_032 | schedule_preceptor_seq | sequence | t | dba
term_032 | schedule_seq | sequence | t | dba
term_032 | schedule_student | table | t | dba
term_032 | schedule_student_seq | sequence | t | dba

--
//========================================================\\
|| D. Hageman <dhageman(at)dracken(dot)com> ||
\\========================================================//

Attachment Content-Type Size
psql-visibility.patch text/plain 1.1 KB

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut - PostgreSQL 2003-01-23 23:39:11 pgsql-server/ oc/src/sgml/func.sgml oc/src/sgm ...
Previous Message Dave Cramer 2003-01-23 18:49:23 pgsql-server/src/interfaces/jdbc/org/postgresq ...

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Copeland 2003-01-23 21:48:48 Re: [HACKERS] C++ coding assistance request for a
Previous Message mlw 2003-01-23 19:50:03 Re: Threads