pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Achilleas Mantzios <a.mantzios@cloud.gatewaynet.com>
To: Pavel Stehule <pavel.stehule@gmail.com>
To: Christophe Pettus <xof@thebuild.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: pl/pgsql outside the DB, (i.e. on the terminal) possible ?
Date: Thu, 7 Mar 2024 20:10:18 +0200
Message-ID: <ac742e1e-26b3-4d59-bc76-de656630efdb@cloud.gatewaynet.com> (raw)
In-Reply-To: <CAFj8pRC8bG2cyn0z-jPS7iUYGDpuoyy4xGXkAjNJ=PsJtc_REw@mail.gmail.com>
References: <596a6961-553e-3781-7aed-9dba969a18a5@cloud.gatewaynet.com>
	<405C1494-7432-442B-AB28-EE04D38E989B@thebuild.com>
	<CAFj8pRC8bG2cyn0z-jPS7iUYGDpuoyy4xGXkAjNJ=PsJtc_REw@mail.gmail.com>

Στις 7/3/24 18:25, ο/η Pavel Stehule έγραψε:
>
>
> čt 7. 3. 2024 v 16:59 odesílatel Christophe Pettus <xof@thebuild.com> 
> napsal:
>
>
>
>     > On Mar 7, 2024, at 06:56, Achilleas Mantzios - cloud
>     <a.mantzios@cloud.gatewaynet.com> wrote:
>     > So, I ask, have there been any efforts to bring PL/PGSQL to the
>     terminal?
>
>     Strictly speaking, of course, you can use PL/pgSQL from the
>     terminal already: just use psql, connect to the database, and
>     create and run functions and procedures as much as you like.
>
>     If the question is, "Have there been any efforts to implement a
>     PL/pgSQL interpreter without PostgreSQL?", that's a different and
>     much more complex problem.  PL/pgSQL uses the PostgreSQL query
>     execution machinery to run pretty much anything that is not a
>     control structure, and the language is very focused on interacting
>     with the database. I doubt it would be worth anyone's time to try
>     to build some kind of minimal framework that implements the SPI to
>     allow PL/pgSQL to operate without PostgreSQL.
>
>
> yes
>
> plpgsql cannot exist without Postgres. PL/pgSQL is strongly reduced 
> interpreted Ada language. The gcc compiler supports Ada language.
>
> I found https://bush.sourceforge.net/bushref.html - it is interpret 
> with Ada syntax, but it is better to learn Python - it is easy - with 
> a pretty big library.
Cool, thank you.
>
> free pascal https://www.freepascal.org/ is good compiler and you can 
> write terminal applications too - with Turbo Vision
Too bad, PASCAL is now neglected by most UNIs :(
>
> Regards
>
> Pavel

-- 
Achilleas Mantzios
  IT DEV - HEAD
  IT DEPT
  Dynacom Tankers Mgmt (as agents only)

view thread (14+ messages)  latest in thread

Message-ID: <ac742e1e-26b3-4d59-bc76-de656630efdb@cloud.gatewaynet.com>
Permalink:  ../ac742e1e-26b3-4d59-bc76-de656630efdb@cloud.gatewaynet.com/
Also on:    postgresql.org/message-id/ac742e1e-26b3-4d59-bc76-de656630efdb@cloud.gatewaynet.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: a.mantzios@cloud.gatewaynet.com, pavel.stehule@gmail.com, xof@thebuild.com
  Subject: Re: pl/pgsql outside the DB, (i.e. on the terminal) possible ?
  In-Reply-To: <ac742e1e-26b3-4d59-bc76-de656630efdb@cloud.gatewaynet.com>
  References: <596a6961-553e-3781-7aed-9dba969a18a5@cloud.gatewaynet.com> <405C1494-7432-442B-AB28-EE04D38E989B@thebuild.com> <CAFj8pRC8bG2cyn0z-jPS7iUYGDpuoyy4xGXkAjNJ=PsJtc_REw@mail.gmail.com> <ac742e1e-26b3-4d59-bc76-de656630efdb@cloud.gatewaynet.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