public inbox for [email protected]  
help / color / mirror / Atom feed
From: Amjith Ramanujam <[email protected]>
To: [email protected]
Subject: pgcli
Date: Thu, 18 Jan 2018 10:15:20 -0800
Message-ID: <CAHUL3dqUREKuzuRC_xeBDs8P7978jAfZGHCFnAL0U5_b78UFDA@mail.gmail.com> (raw)

Hi folks,

I'm Amjith. I created PGCLI <https://www.pgcli.com;, an Opensource client
for Postgres. It is a command line client with GUI features such as
Auto-Completion and Syntax Highlighting.

My goal for participation is gathering consensus to add support in Postgres
to provide support for accessing metadata about a database without
complicated queries.

For example, in order to get a list of tables in a database I have to run a
query like this:

```
        SELECT  n.nspname schema_name,
                c.relname table_name
        FROM    pg_catalog.pg_class c
                LEFT JOIN pg_catalog.pg_namespace n
                    ON n.oid = c.relnamespace
        WHERE   c.relkind = ANY(%s)
        ORDER BY 1,2;'
```

Columns query is even more complicated.

It'll be nice to have a simple database view that ships by default that we
can query to get his info.

I'm also interested to know how other GUI tool devs get this info from the
database.

Cheers!
Amjith


view thread (2+ messages)  latest in thread

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 using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: pgcli
  In-Reply-To: <CAHUL3dqUREKuzuRC_xeBDs8P7978jAfZGHCFnAL0U5_b78UFDA@mail.gmail.com>

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

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