Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1he4wn-0005QR-MS for pgsql-general@arkaria.postgresql.org; Thu, 20 Jun 2019 21:50:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1he4wm-0005I2-CQ for pgsql-general@arkaria.postgresql.org; Thu, 20 Jun 2019 21:50:20 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1he4wk-0005Hv-EF for pgsql-general@lists.postgresql.org; Thu, 20 Jun 2019 21:50:20 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1he4wd-0001yT-BH for pgsql-general@postgresql.org; Thu, 20 Jun 2019 21:50:17 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 4C11D221F7; Thu, 20 Jun 2019 17:50:10 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 20 Jun 2019 17:50:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=O AzRgq2u5aDDylxjon2bozqjCVsfBRuZU+G+OHaFahg=; b=hgOuwWrXBOTHlp0cm zYLsv3hLGXzJq7qN5fIeP3C+fYdgE5XClREGB4ZqvQmJ4jLw6sYAgTdfLlYdRXia m5bR50V+h9Cby9wiWkR5zb676gV1c8NJmkT1ZiYspdwtF2WM29RypQklNcucb5Ny abmp1fbeoycaR59H3QjAvH1gs2hchOzhZTWsZMkcMTsdcwqFdqU5yFEvz9odfIdA oJdSl4Fgfu8Brk6LZ9Q2t+8QR/Ecr+WPq7XVkQTEWvxGP+C2EGhb/7ZY3LX1QaHc HNgWkJmlYxHxVMzRxIPY6ZOMXaQFFd+yYXeHzw18bResS/1xiVRFx3t6FWJ2nEQT bi8TA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=OAzRgq2u5aDDylxjon2bozqjCVsfBRuZU+G+OHaFa hg=; b=x2r2CaV2B/kqscRgHeiqXO50HAhxgHb/RMJqW2wVtdF6kXqgWiq5VqGIT l2TUYD2h+iVE+MrDMYLCDQfICUvOVgsM8W4NvIvStKmbAjJ+zSGGEb42e4ZAzVwt 48ql8AGx/6pgFnRXhW+LbspmtHE6gAHNyOIiiDxx6zOouy56w8ff8EFXsKJU3Pyk 98t8Z53kpiCCIXYKhJLIbjnIlhJYrMNGuNdi7He0ldH+SLJ7UgqVlF5AOdQU2EEV tF/riWMfESV/vZQQixtMQ3DmtKFt9Zepsp4oyJF9Lp8FF6cV/AZ0qyWofqrRaFuF uRvfpkLKYXJWPihKY7yZxUYnsvfxw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrtdehgddtudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthekre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucffohhmrghinhepphhoshhtghhrvghsqh hlrdhorhhgnecukfhppeejgedrleegrdejfedrvddvvdenucfrrghrrghmpehmrghilhhf rhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhenucevlhhush htvghrufhiiigvpedt X-ME-Proxy: Received: from ranger.suse (unknown [74.94.73.222]) by mail.messagingengine.com (Postfix) with ESMTPA id 5891B380075; Thu, 20 Jun 2019 17:50:09 -0400 (EDT) Subject: Re: List tables for a specific schema To: David Gauthier , pgsql-general@postgresql.org References: From: Adrian Klaver Message-ID: <3a3909eb-616f-c6d4-5486-76abc219c253@aklaver.com> Date: Thu, 20 Jun 2019 14:50:08 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 6/20/19 2:43 PM, David Gauthier wrote: > psql (9.6.7, server 9.5.2) > > I created a schema in my DB called "dvm".  Then I created a table a-la... > create table dvm.foo (col1 tedxt); .  I see the schema with \dnS+.  But > I can't see my table using \d.  I can see the dable with \d dvm.foo, so > it's in there.  The first column of the \d output is "Schema", so I > would have expected to see it there. But no luck. > > What I would like is to see a list of all the tables in the dvm schema > and nothing else.  "\d dvm.*" works, but it also spills the details of > every table.  I just want the list of tables in the schema. > > Is there a way to get what I want ? Looks like a search_path issue. In psql: 1) show search_path To see what your search path is. 2) Then take a look at: https://www.postgresql.org/docs/11/ddl-schemas.html#DDL-SCHEMAS-PATH to see how to change it. > > Thanks ! -- Adrian Klaver adrian.klaver@aklaver.com