pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas Kretzer <andi@kretzer-berlin.de>
To: Postgres Interface List <pgsql-interfaces@postgresql.org>
Subject: Re: Beginner Programming Question
Date: Tue, 23 Apr 2002 10:51:46 +0200
Message-ID: <3CC520A2.4048D84F@kretzer-berlin.de> (raw)
References: <000701c1e6fc$9f53c960$6501a8c0@test>

Jeff Flowers wrote:

> I am planning on using PostgreSQL and I would like to have a command line
> frontend. I am just now learning C, so my question is: what is the best way
> for a novice to get started? libpgeasy seems cool but there doesn't seem to
> be much in the way of examples for it.
>
> Also, has anyone designed a front-end using a shell, such as Bash?

Use 'psql' !

It's a simple SQL query backend and the use is straight forward! I use it regularly
to manage bad entries (-> user fault which are not correctable from application side)
and to discover strange things which lead to errors in my application.

The first arg to psql is the database name. If you miss it, your database will be your
user name (if it doesn't exist it will fail). Read the manual or try the online help

BTW: I use Tcl/Tk for my applications. It's easy to use, provides a graphical frontend
and is portable between Linux and Windows.

Hope this helps
Andreas




view thread (2+ messages)

Message-ID: <3CC520A2.4048D84F@kretzer-berlin.de>
Permalink:  ../3CC520A2.4048D84F@kretzer-berlin.de/
Also on:    postgresql.org/message-id/3CC520A2.4048D84F@kretzer-berlin.de

 · 

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: pgsql-interfaces@postgresql.org
  Cc: andi@kretzer-berlin.de
  Subject: Re: Beginner Programming Question
  In-Reply-To: <3CC520A2.4048D84F@kretzer-berlin.de>

* 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