pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <shammat@gmx.net>
To: pgsql-general@lists.postgresql.org
Subject: Re: Why not used standard SQL commands?
Date: Sat, 8 Jan 2022 22:45:03 +0100
Message-ID: <d31d4cf8-59f7-4707-e833-ab063cb31b19@gmx.net> (raw)
In-Reply-To: <7d34ef92-d37d-d329-9f92-98e87b87e98d@gmail.com>
References: <7d34ef92-d37d-d329-9f92-98e87b87e98d@gmail.com>

Ali Koca schrieb am 08.01.2022 um 19:25:
> I'm seeing \dt used for "show tables", \l used for "show databases". Why
> not standart SQL syntax words? Why specified PostgreSQL commands?
> I can't figure out that.

The only thing the SQL standard defines to gain access to information about
tables, schemas and catalogs (=databases) is the information_schema views.

There is no "show database" or "show tables" statement in the SQL standard.


Btw: \dt is a command specific to the psql client - it's not a general
"SQL command" in Postgres







Message-ID: <d31d4cf8-59f7-4707-e833-ab063cb31b19@gmx.net>
Permalink:  ../d31d4cf8-59f7-4707-e833-ab063cb31b19@gmx.net/
Also on:    postgresql.org/message-id/d31d4cf8-59f7-4707-e833-ab063cb31b19@gmx.net

 · 

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: shammat@gmx.net
  Subject: Re: Why not used standard SQL commands?
  In-Reply-To: <d31d4cf8-59f7-4707-e833-ab063cb31b19@gmx.net>
  References: <7d34ef92-d37d-d329-9f92-98e87b87e98d@gmail.com> <d31d4cf8-59f7-4707-e833-ab063cb31b19@gmx.net>

* 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