From d075eaba6eb2cdfb308fa5d0ea11b6e8131536a3 Mon Sep 17 00:00:00 2001 From: emorino Date: Thu, 4 Jun 2020 15:05:26 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20list=C3=A9=20les=20sch=C3=A9mas=20et=20?= =?UTF-8?q?les=20tables=20d'un=20sch=C3=A9ma?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HowtoPostgreSQL.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/HowtoPostgreSQL.md b/HowtoPostgreSQL.md index e9abe25a..5a4c9b9f 100644 --- a/HowtoPostgreSQL.md +++ b/HowtoPostgreSQL.md @@ -500,7 +500,23 @@ interval '1d' and state = 'idle' ; ps aux|grep postgres|grep idle|awk '//{print $2}'|while read pid;do kill $pid;done ~~~ +* Listé tous les schémas d'une base et leurs propriétaires : +~~~ +=# \dn +~~~ + +* Listé les tables de tous les schémas : + +~~~ +=# \dt +~~~ + +où si on veux également listé les tables en incluant les schémas interne à PostgreSQL : + +~~~ +=# \dt *.* +~~~ ### Ajouter un langage