Re: [HACKERS] Re: [BUGS] First experiences with Postgresql 7.0 - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: [HACKERS] Re: [BUGS] First experiences with Postgresql 7.0
Date
Msg-id Pine.LNX.4.21.0002250013250.4316-100000@localhost.localdomain
Whole thread Raw
In response to Re: [HACKERS] Re: [BUGS] First experiences with Postgresql 7.0  (Rolf Grossmann <grossman@securitas.net>)
Responses Re: [HACKERS] Re: [BUGS] First experiences with Postgresql 7.0
Re: [HACKERS] Re: [BUGS] First experiences with Postgresql 7.0
List pgsql-hackers
On 2000-02-24, Rolf Grossmann mentioned:

> use psql as a shell and I think it would be really cool if you could just
> write #!/path/to/psql -f to write sql scripts.

I considered that briefly, but dismissed it equally fast. psql is a shell
to the PostgreSQL backend, if you will, not to the system. It's optimized
as a batch processor and for being called from shell scripts, not for
being a programming language of it's own. (In the future it would be nice
to have a PL/Pgsql based front-end available for that sort of stuff.)

> Uhm ... my tcsh manual describes those options differently:
> 
>        -f  The shell ignores ~/.tcshrc, and thus starts faster.
>        -X  Is to -x as -V is to -v.

I wasn't actually implying to have picked -X in accordance with tcsh, I
was just confused about how Tom talked about -f.


-- 
Peter Eisentraut                  Sernanders väg 10:115
peter_e@gmx.net                   75262 Uppsala
http://yi.org/peter-e/            Sweden



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: [HACKERS] Re: [PATCHES] Patch for more readable parse error messages
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Re: [PATCHES] Patch for more readable parse error messages