Re: How to plpgsql scripting - Mailing list pgsql-general

From David G. Johnston
Subject Re: How to plpgsql scripting
Date
Msg-id CAKFQuwavJrzoNWiJW+pmgS+u1Vu9A2rmwG5m=Qc=cr2OM0RGyQ@mail.gmail.com
Whole thread Raw
In response to How to plpgsql scripting  (Ekaterina Amez <ekaterina.amez@zunibal.com>)
Responses Re: How to plpgsql scripting  (Ekaterina Amez <ekaterina.amez@zunibal.com>)
List pgsql-general
On Wednesday, March 25, 2020, Ekaterina Amez <ekaterina.amez@zunibal.com> wrote:

What's wrong with the syntax? Or is not possible to make a script and I have to create a function to encapsulate my code?

This not working exactly the reason the “DO” command was created..... 

David J.

pgsql-general by date:

Previous
From: Durumdara
Date:
Subject: PLPGSQL: DECLARE more variable with same type at once
Next
From: Edson Richter
Date:
Subject: How to query "primary_slot_name" in slave server?