Re: pl/pgsql outside the DB, (i.e. on the terminal) possible ?

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: pl/pgsql outside the DB, (i.e. on the terminal) possible ?
Дата
Msg-id CAFj8pRC8bG2cyn0z-jPS7iUYGDpuoyy4xGXkAjNJ=PsJtc_REw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pl/pgsql outside the DB, (i.e. on the terminal) possible ?  (Christophe Pettus <xof@thebuild.com>)
Ответы Re: pl/pgsql outside the DB, (i.e. on the terminal) possible ?
Re: pl/pgsql outside the DB, (i.e. on the terminal) possible ?
Список pgsql-general


č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.

free pascal https://www.freepascal.org/ is good compiler and you can write terminal applications too - with Turbo Vision

Regards

Pavel

В списке pgsql-general по дате отправления:

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: v11.5- v15.3 upgrade (linux)
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: pl/pgsql outside the DB, (i.e. on the terminal) possible ?