Skip site navigation (1) Skip section navigation (2)

Re: dictionary?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ray Stell <stellr(at)cns(dot)vt(dot)edu>
Cc: "Tomeh, Husam" <htomeh(at)firstam(dot)com>, pgsql-novice(at)postgresql(dot)org
Subject: Re: dictionary?
Date: 2006-09-22 20:00:17
Message-ID: 10908.1158955217@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-novice
Ray Stell <stellr(at)cns(dot)vt(dot)edu> writes:
> template1=# \d sql_features
> Did not find any relation named "sql_features".

That's because it's not in your search_path.  This would work:

regression=# \d information_schema.sql_features
             Table "information_schema.sql_features"
      Column      |               Type                | Modifiers
------------------+-----------------------------------+-----------
 feature_id       | information_schema.character_data |
 feature_name     | information_schema.character_data |
 sub_feature_id   | information_schema.character_data |
 sub_feature_name | information_schema.character_data |
 is_supported     | information_schema.character_data |
 is_verified_by   | information_schema.character_data |
 comments         | information_schema.character_data |

or this:

regression=# \d *.sql_features
             Table "information_schema.sql_features"
      Column      |               Type                | Modifiers
------------------+-----------------------------------+-----------
 feature_id       | information_schema.character_data |
 feature_name     | information_schema.character_data |
 sub_feature_id   | information_schema.character_data |
 sub_feature_name | information_schema.character_data |
 is_supported     | information_schema.character_data |
 is_verified_by   | information_schema.character_data |
 comments         | information_schema.character_data |

or add information_schema to search_path:

regression=# set search_path = "$user",public,information_schema;
SET
regression=# \d sql_features
    Table "information_schema.sql_features"
      Column      |      Type      | Modifiers
------------------+----------------+-----------
 feature_id       | character_data |
 feature_name     | character_data |
 sub_feature_id   | character_data |
 sub_feature_name | character_data |
 is_supported     | character_data |
 is_verified_by   | character_data |
 comments         | character_data |

> template1=# \dT+sql_features

\dt and \dT are entirely different things.

			regards, tom lane

In response to

Responses

pgsql-novice by date

Next:From: Ray StellDate: 2006-09-22 20:25:25
Subject: Re: dictionary?
Previous:From: Ray StellDate: 2006-09-22 19:49:29
Subject: Re: dictionary?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group