From: | Corey Huinker <corey(dot)huinker(at)gmail(dot)com> |
---|---|
To: | pavel(dot)stehule(at)gmail(dot)com |
Cc: | pierre(dot)ducroquet(at)people-doc(dot)com, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: [RFC] Add an until-0 loop in psql |
Date: | 2018-04-28 19:25:21 |
Message-ID: | CADkLM=fDN3eTJxp-N3vbaJ3WaJi5QO0O3VuMjyJqv5BobtRQ_A@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
>
>
> I did it too. It is not too hard - there was not a agreement on syntax.
>
> can be nice some like CTE
>
> WITH PROCEDURE x(a int, b int) AS ... $$ SELECT x(10);
>
I've seen "WITH function...." syntax in Oracle (here's an example:
https://oracle-base.com/articles/12c/with-clause-enhancements-12cr1) , but
I can see where we'd run into trouble with SELECT statements being atomic,
and the PROCEDURE being transactional. If we only allowed a one-line SELECT
that problem would go away, but that raises the question of whether SELECT
is the right keyword for the job. Is there something in the SQL standard
for that?
Either way, we're clearly talking about something to add to postgres, not
psql itself, and we should split this conversation to another thread. Sorry
for hijacking your thread, Pierre.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2018-04-28 19:28:03 | Re: WIP: a way forward on bootstrap data |
Previous Message | Hartmut Holzgraefe | 2018-04-28 19:10:54 | Re: Is a modern build system acceptable for older platforms |