Received: from dealer.netventures.com.au (dnet137107-1.gw.connect.com.au [210.8.15.221] (may be forged)) by postgresql.org (8.11.3/8.11.4) with ESMTP id g0GMa5V38871 for ; Wed, 16 Jan 2002 17:36:05 -0500 (EST) (envelope-from david@netventures.com.au) Received: from ciderbox.in.netventures.com.au (net137107-2.gw.connect.com.au [210.9.198.119]) by dealer.netventures.com.au (Postfix) with ESMTP id E18471A5DCA; Thu, 17 Jan 2002 09:36:01 +1100 (EST) Date: Thu, 17 Jan 2002 09:36:06 +1100 Subject: Re: Monitoring database Content-Type: multipart/alternative; boundary=Apple-Mail-1-701112064 Mime-Version: 1.0 (Apple Message framework v480) From: David Stanaway To: romio@il.aduva.com, pgsql-admin@postgresql.org In-Reply-To: <3C45352D.D95F430@il.aduva.com> Message-Id: <6E38ED39-0AD1-11D6-84EB-0003930FDAB2@netventures.com.au> X-Mailer: Apple Mail (2.480) X-Archive-Number: 200201/106 X-Sequence-Number: 2993 --Apple-Mail-1-701112064 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1; format=flowed On Wednesday, January 16, 2002, at 07:09 PM, Roman Gavrilov wrote: > Yes I=A0would like to see system tables, that is correct is there any way= =20 > to see all those tables. > For example in MySQL there is mysql database where you have all system=20 > tables. Please read the documentation. I have already told you where to look. But just incase you missed it: $ psql template1 Welcome to psql, the PostgreSQL interactive terminal. Type: \copyright for distribution terms \h for help with SQL commands \? for help on internal slash commands \g or terminate with semicolon to execute query \q to quit template1=3D> \? \a toggle between unaligned and aligned mode \c[onnect] [dbname|- [user]] connect to new database (currently 'template1') \C table title \copy ... perform SQL COPY with data stream to the client machine \copyright show PostgreSQL usage and distribution terms \d <table> describe table (or view, index, sequence) \d{t|i|s|v} list tables/indices/sequences/views \d{p|S|l} list permissions/system tables/lobjects \da list aggregates \dd [object] list comment for table, type, function, or operator \df list functions \do list operators \dT list data types \e [file] edit the current query buffer or [file] with external=20 editor \echo <text> write text to stdout \encoding <encoding> set client encoding \f <sep> change field separator \g [file] send query to backend (and results in [file] or |pipe) \h [cmd] help on syntax of sql commands, * for all commands \H toggle HTML mode (currently off) \i <file> read and execute queries from <file> \l list all databases \lo_export, \lo_import, \lo_list, \lo_unlink large object operations \o [file] send all query results to [file], or |pipe \p show the content of the current query buffer \pset <opt> set table output <opt> =3D=20 {format|border|expanded|fieldsep| null|recordsep|tuples_only|title|tableattr|pager} \q quit psql \qecho <text> write text to query output stream (see \o) \r reset (clear) the query buffer \s [file] print history or save it in [file] \set <var> <value> set internal variable \t show only rows (currently off) \T <tags> HTML table tags \unset <var> unset (delete) internal variable \w <file> write current query buffer to a <file> \x toggle expanded output (currently off) \z list table access permissions \! [cmd] shell escape or command =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D David Stanaway Personal: david@stanaway.net Work: david@netventures.com.au --Apple-Mail-1-701112064 Content-Transfer-Encoding: quoted-printable Content-Type: text/enriched; charset=ISO-8859-1 On Wednesday, January 16, 2002, at 07:09 PM, Roman Gavrilov wrote: <excerpt>Yes I=A0would like to see system tables, that is correct is there any way to see all those tables. For example in MySQL there is mysql database where you have all system tables. </excerpt> Please read the documentation. I have already told you where to look. But just incase you missed it: $ psql template1 Welcome to psql, the PostgreSQL interactive terminal. Type: \copyright for distribution terms \h for help with SQL commands \? for help on internal slash commands \g or terminate with semicolon to execute query \q to quit template1=3D> \? \a toggle between unaligned and aligned mode \c[onnect] [dbname|- [user]] connect to new database (currently 'template1') \C <<title> table title \copy ... perform SQL COPY with data stream to the client machine \copyright show PostgreSQL usage and distribution terms \d <<table> describe table (or view, index, sequence) \d{t|i|s|v} list tables/indices/sequences/views \d{p|S|l} list permissions/system tables/lobjects \da list aggregates \dd [object] list comment for table, type, function, or operator \df list functions \do list operators \dT list data types \e [file] edit the current query buffer or [file] with external editor \echo <<text> write text to stdout \encoding <<encoding> set client encoding \f <<sep> change field separator \g [file] send query to backend (and results in [file] or |pipe) \h [cmd] help on syntax of sql commands, * for all commands \H toggle HTML mode (currently off) \i <<file> read and execute queries from <<file> \l list all databases \lo_export, \lo_import, \lo_list, \lo_unlink large object operations \o [file] send all query results to [file], or |pipe \p show the content of the current query buffer \pset <<opt> set table output <<opt> =3D {format|border|expanded|fieldsep| null|recordsep|tuples_only|title|tableattr|pager} \q quit psql \qecho <<text> write text to query output stream (see \o) \r reset (clear) the query buffer \s [file] print history or save it in [file] \set <<var> <<value> set internal variable \t show only rows (currently off) \T <<tags> HTML table tags \unset <<var> unset (delete) internal variable \w <<file> write current query buffer to a <<file> \x toggle expanded output (currently off) \z list table access permissions \! [cmd] shell escape or command <fontfamily><param>Helvetica</param>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D David Stanaway Personal: david@stanaway.net=20 Work: david@netventures.com.au</fontfamily> --Apple-Mail-1-701112064--