Unix Technical Forum

possible psql \d bug in 8.3 beta2

This is a discussion on possible psql \d bug in 8.3 beta2 within the Pgsql General forums, part of the PostgreSQL category; --> Is seems that \d is missing the following entry when I set search_path to display two schemas: List of ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 12:16 AM
Richard Broersma Jr
 
Posts: n/a
Default possible psql \d bug in 8.3 beta2

Is seems that \d is missing the following entry
when I set search_path to display two schemas:
List of relations
Schema | Name | Type | Owner
---------+-------------+-------+----------
project | managers | table | teaminst





instrumentation=> select version();
version
--------------------------------------------------------
PostgreSQL 8.3beta2, compiled by Visual C++ build 1400
(1 row)

instrumentation=> set search_path to project;
SET
instrumentation=> \d
List of relations
Schema | Name | Type | Owner
---------+-------------+-------+----------
project | managers | table | teaminst
project | project_tls | table | teaminst
project | projects | table | teaminst
(3 rows)

instrumentation=> set search_path to history;
SET
instrumentation=> \d
List of relations
Schema | Name | Type | Owner
---------+----------+-------+----------
history | managers | table | teaminst
(1 row)

instrumentation=> set search_path to history, project;
SET
instrumentation=> \d
List of relations
Schema | Name | Type | Owner
---------+-------------+-------+----------
history | managers | table | teaminst <--where is project.managers
project | project_tls | table | teaminst
project | projects | table | teaminst
(3 rows)

instrumentation=>

Regards,
Richard Broersma Jr.

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 12:16 AM
Tom Lane
 
Posts: n/a
Default Re: possible psql \d bug in 8.3 beta2

Richard Broersma Jr <rabroersma@yahoo.com> writes:
> Is seems that \d is missing the following entry
> when I set search_path to display two schemas:
> List of relations
> Schema | Name | Type | Owner
> ---------+-------------+-------+----------
> project | managers | table | teaminst


It's hidden by the "managers" table in the earlier "history" schema.
\d without any particular schema specification will only show tables
that could be accessed by an unqualified table name.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-10-2008, 12:16 AM
Richard Broersma Jr
 
Posts: n/a
Default Re: possible psql \d bug in 8.3 beta2

--- On Sun, 12/23/07, Tom Lane <tgl@sss.pgh.pa.us> wrote:

> > ---------+-------------+-------+----------
> > project | managers | table | teaminst

>
> It's hidden by the "managers" table in the
> earlier "history" schema.
> \d without any particular schema specification will
> only show tables
> that could be accessed by an unqualified table name.



I see. Thanks for the clarification.

Regards,
Richard Broersma Jr.

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:08 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com