Re: psql metaqueries with \gexec - Mailing list pgsql-hackers

From Corey Huinker
Subject Re: psql metaqueries with \gexec
Date
Msg-id CADkLM=cf3s1O4+74SeTrHzPvdmRKdOifqxnSLdpUiunY7zXW_g@mail.gmail.com
Whole thread Raw
In response to Re: psql metaqueries with \gexec  (Corey Huinker <corey.huinker@gmail.com>)
Responses Re: psql metaqueries with \gexec
List pgsql-hackers


On Sun, Apr 3, 2016 at 8:42 PM, Corey Huinker <corey.huinker@gmail.com> wrote:
On Sun, Apr 3, 2016 at 7:43 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
Corey Huinker <corey.huinker@gmail.com> writes:
>>> +         The secondary queries are executed in top-to-bottom,
>>> left-to-right order, so the command

>> I took that as meaning what I said above.

> Would using the term https://en.wikipedia.org/wiki/Row-major_order be more
> clear?

Meh, I suspect a lot of people don't know that term.  Perhaps something
like "The generated queries are executed in the order in which the rows
are returned, and left-to-right within each row if there is more than one
column."

                        regards, tom lane


I like it. Change forthcoming.


Changes since last submission:

Patch attached. Changes are thus:
- rebased
- pset.gexec_flag unconditionally set to false at end of SendQuery
- wording of documentation describing execution order of results
- rebasing allowed for undoing the re-wrap of enumerated slash commands.

Still not changed:
- exuberant braces, can remove if someone wants me to
Attachment

pgsql-hackers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: Default Roles (was: Additional role attributes)
Next
From: Petr Jelinek
Date:
Subject: Re: Proposal: Generic WAL logical messages