Re: New user question -- alternate programmer interfaces?

From: "Ross J(dot) Reedstrom" <reedstrm(at)rice(dot)edu>
To: Mitch Vincent <mitch(at)venux(dot)net>
Cc: Carl Alexander <carl_alexander(at)terc(dot)edu>, pgsql-general(at)postgresql(dot)org
Subject: Re: New user question -- alternate programmer interfaces?
Date: 2000-08-18 17:06:56
Message-ID: 20000818120656.B27612@rice.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Aug 18, 2000 at 09:39:53AM -0700, Mitch Vincent wrote:
> You could put it in a file and feed it to psql like
>
> psql <db-name> < codefile.sql

I find a slight variation on this most userful (this is for bash: season
redirects for your flavor of shell):

psql -e <db-name> <codefile.sql 2>&1 | less

then search in less for the string ERROR

Or, if you want to do code fragments, tale a look at the \i command in
psql. (hit \? in psql to get a list of all the slash commands)

Ross

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tim Webster 2000-08-18 17:53:14 Any MacOS X or Darwin installations?
Previous Message Mitch Vincent 2000-08-18 16:39:53 Re: New user question -- alternate programmer interfaces?