Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n8Lxt-0007We-8y for pgsql-general@arkaria.postgresql.org; Fri, 14 Jan 2022 12:45:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n8Lxr-00075S-F2 for pgsql-general@arkaria.postgresql.org; Fri, 14 Jan 2022 12:45:55 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n8Lxr-00075H-05 for pgsql-general@lists.postgresql.org; Fri, 14 Jan 2022 12:45:55 +0000 Received: from srv01.teladesign.ie ([2001:41c9:1:41d::10]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n8Lxo-0006wk-0F for pgsql-general@lists.postgresql.org; Fri, 14 Jan 2022 12:45:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=rodonnell.ie; s=exim; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:To:Subject:Sender:Reply-To:Cc: Content-ID:Content-Description:Resent-Message-ID; bh=J7PceobRgxj7xF+fNRwXjM24MR4U5mgubbBmG4mxwlU=; b=DwM2yDiWJd02KYpSOGpPtsp5hz yIS6NDI6JJ3WJrT5fd0mdCgiILIaKKcAYCYaLhztYFvpu5eKN4kBpT7+7B4Ghnd0ZOAo/JlWyhDak izX0Cfapn99vRz+qsp4pIAhs++ARYE46w39taxPsTBFWgA+EOyAXxWJGsfDlHV551llg=; Received: from [93.107.231.214] (helo=[192.168.1.15]) by srv01.teladesign.ie with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1n8Lxl-0003vN-LU; Fri, 14 Jan 2022 12:45:49 +0000 Subject: Re: List all tables from a specific database To: Flaviu2 , "pgsql-general@lists.postgresql.org" References: <754992290.610416.1642156769536.ref@mail.yahoo.com> <754992290.610416.1642156769536@mail.yahoo.com> <424c1084-1e65-8e06-7f80-efe2a2b819e7@rodonnell.ie> <1334065283.630213.1642164142702@mail.yahoo.com> From: Ray O'Donnell Message-ID: <0b4c9d08-e1e6-3662-1e05-e697db29dc35@rodonnell.ie> Date: Fri, 14 Jan 2022 12:45:49 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <1334065283.630213.1642164142702@mail.yahoo.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 14/01/2022 12:42, Flaviu2 wrote: > Yes, I started psql with -E, and now I see the SQL underhood. Thank you. > > Now I need to find how to get and how to select a specific database, I > have no experience in Postgre SQL. Well, connecting from the command line with psql, you just specify it: psql [...options...] my_database Or if you're already in psql, use the \c command: \c my_database The Postgres manual is excellent, if enormous: https://www.postgresql.org/docs/current/index.html A good place to start is the "Tutorial" section. HTH, Ray. -- Raymond O'Donnell // Galway // Ireland ray@rodonnell.ie