pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Wayne Johnson <wdtj@yahoo.com>
To: wdtj@yahoo.com
Subject: Calling psql from a shell script
Date: Wed, 27 Jun 2001 19:44:30 -0500
Message-ID: <3B3A7DEE.1FE009CE@yahoo.com> (raw)

I am writing some shell scripts that need to access Postgresql.  

What is the best way to select a record and have shell variables set to
the results.

Is there a way to get psql to output data in quoted CSV?

TIA.



view thread (2+ messages)  latest in thread

Message-ID: <3B3A7DEE.1FE009CE@yahoo.com>
Permalink:  ../3B3A7DEE.1FE009CE@yahoo.com/
Also on:    postgresql.org/message-id/3B3A7DEE.1FE009CE@yahoo.com

 · 

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: wdtj@yahoo.com
  Subject: Re: Calling psql from a shell script
  In-Reply-To: <3B3A7DEE.1FE009CE@yahoo.com>

* 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