| From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
|---|---|
| To: | jjeffman(at)cpovo(dot)net |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: table synonyms |
| Date: | 2005-05-23 15:52:17 |
| Message-ID: | 20050523155217.GC12731@svana.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Mon, May 23, 2005 at 09:07:08AM -0300, jjeffman(at)cpovo(dot)net wrote:
> Thank you very much for your answer.
>
> What happens if there are more than one table with the same name in the
> "search_path" ?
It takes the first one.
There is no explicit relationship between users and schemas, however
many installations have the search_path default to "$user, public"
which is magically substituted on connection. You are ofcourse free to
alter search_path whenever you want. Any table can always be referred
to by its full name...
Hope this helps,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2005-05-23 15:54:15 | Re: Exception Handling in C-Language Functions? |
| Previous Message | Tom Lane | 2005-05-23 15:48:08 | Re: C++-Language Function/Process List |