pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bryn Llewellyn <bryn@yugabyte.com>
Cc: pgsql-general list <pgsql-general@lists.postgresql.org>
Subject: Re: Why can't I have a "language sql" anonymous block?
Date: Mon, 13 Dec 2021 15:53:37 -0500
Message-ID: <872342.1639428817@sss.pgh.pa.us> (raw)
In-Reply-To: <C9838A29-8C84-4F68-9C41-5CB4665911E5@yugabyte.com>
References: <C9838A29-8C84-4F68-9C41-5CB4665911E5@yugabyte.com>

Bryn Llewellyn <bryn@yugabyte.com> writes:
> Was there a deliberate decision not to allow a “language sql” anonymous block? Or is it just that nobody thought that it would be useful?

I think nobody thought it'd be useful.  What's the difference from
just executing the contained SQL statements?

(If DO blocks had parameters, the conclusion might be different,
but they don't so far.)

			regards, tom lane





view thread (15+ messages)  latest in thread

Message-ID: <872342.1639428817@sss.pgh.pa.us>
Permalink:  ../872342.1639428817@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/872342.1639428817@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, bryn@yugabyte.com
  Subject: Re: Why can't I have a "language sql" anonymous block?
  In-Reply-To: <872342.1639428817@sss.pgh.pa.us>
  References: <C9838A29-8C84-4F68-9C41-5CB4665911E5@yugabyte.com> <872342.1639428817@sss.pgh.pa.us>

* 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