Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 449F3476D73 for ; Thu, 5 Dec 2002 18:36:21 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 281A1476B1F for ; Thu, 5 Dec 2002 17:57:52 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.6/8.12.6) with ESMTP id gB5Mvppd005678; Thu, 5 Dec 2002 17:57:51 -0500 (EST) To: Jie Liang Cc: "'Bruce Momjian'" , pgsql-admin@postgresql.org Subject: Re: why schema name is same as username behaves different then others In-reply-to: References: Comments: In-reply-to Jie Liang message dated "Thu, 05 Dec 2002 14:49:02 -0800" Date: Thu, 05 Dec 2002 17:57:50 -0500 Message-ID: <5677.1039129070@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/68 X-Sequence-Number: 6563 Jie Liang writes: > ####I expect to see something like: You're neglecting the effects of search path. \dt only shows what's visible in your search path. (IIRC, \dt *.* is the easiest way to see all tables regardless of search path.) > #### it seems if schema name is same as username then > #### it will shadow the objects in the public schema that have same name. That's what it's supposed to do, and yes this is documented, and yes you can change it if you don't like it. Read about search_path. regards, tom lane