Re: psql Feature request \set query - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: psql Feature request \set query
Date
Msg-id 490035CF.3090804@gmx.net
Whole thread Raw
In response to Re: psql Feature request \set query  (Magnus Hagander <magnus@hagander.net>)
Responses Re: psql Feature request \set query  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Re: psql Feature request \set query  (Josh Berkus <josh@agliodbs.com>)
List pgsql-hackers
Magnus Hagander wrote:
> If you want full scripting, look at pgscript, one of this summers gsoc 
> projects. It'll ship in the next pgadmin and is also available as a 
> standalone executable.

Yet another language?

What people asking for psql scriptability really want, in my estimate, 
is the ability to write "SQL plus some control structures" anywhere, in 
the server, in the client, or so that they don't have to know where. 
Commercial vendors have that: Oracle has PL/SQL as server-side language 
and client-side language.  Microsoft has T-SQL.  The others have similar 
offerings.

What PostgreSQL has in one kind of extended SQL language in the 
terminal, another kind of extended SQL language in the server (but 
really two separate languages, one for functions, one outside of 
functions), and now yet another kind of extended SQL language in the 
GUI, each mutually wildly incompatible.  And neither is based on a standard.

Something to think about ...


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: psql Feature request \set query
Next
From: "Pavel Stehule"
Date:
Subject: Re: psql Feature request \set query