pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Flaviu2 <flaviu2@yahoo.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
To: Ray O'Donnell <ray@rodonnell.ie>
Subject: Re: List all tables from a specific database
Date: Fri, 14 Jan 2022 12:51:29 +0000 (UTC)
Message-ID: <1809695488.637591.1642164689512@mail.yahoo.com> (raw)
In-Reply-To: <0b4c9d08-e1e6-3662-1e05-e697db29dc35@rodonnell.ie>
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>
	<0b4c9d08-e1e6-3662-1e05-e697db29dc35@rodonnell.ie>

 Yes, I ran
\c mydb1
but I didn't see any SQL script underhood :(

    On Friday, January 14, 2022, 02:45:52 PM GMT+2, Ray O'Donnell <ray@rodonnell.ie> wrote:  
 
 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
  

view thread (10+ messages)  latest in thread

Message-ID: <1809695488.637591.1642164689512@mail.yahoo.com>
Permalink:  ../1809695488.637591.1642164689512@mail.yahoo.com/
Also on:    postgresql.org/message-id/1809695488.637591.1642164689512@mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: flaviu2@yahoo.com, ray@rodonnell.ie
  Subject: Re: List all tables from a specific database
  In-Reply-To: <1809695488.637591.1642164689512@mail.yahoo.com>
  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> <0b4c9d08-e1e6-3662-1e05-e697db29dc35@rodonnell.ie> <1809695488.637591.1642164689512@mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox