Re: BUG #14241: i want to do commit and rollback in one plpgsql block..
От | David G. Johnston |
---|---|
Тема | Re: BUG #14241: i want to do commit and rollback in one plpgsql block.. |
Дата | |
Msg-id | CAKFQuwY3a7v+pdjg_Wm5b2Mdmp-kuEGk69oeTBw5Lo3m7zS6nw@mail.gmail.com обсуждение исходный текст |
Ответ на | BUG #14241: i want to do commit and rollback in one plpgsql block.. (zzia88@gmail.com) |
Список | pgsql-bugs |
On Mon, Jul 11, 2016 at 9:40 AM, zubair alam <zzia88@gmail.com> wrote: > Please give me exact answer. i am waiting for solution. or tell how i hav= e > to use in commit and rollback in one plpgsql block. > if you have knowledge then give me exact answer. > > On Mon, Jul 11, 2016 at 4:14 PM, David G. Johnston < > david.g.johnston@gmail.com> wrote: > >> On Mon, Jul 11, 2016 at 3:32 AM, <zzia88@gmail.com> wrote: >> >>> The following bug has been logged on the website: >>> >>> Bug reference: 14241 >>> Logged by: Zubair Alam >>> Email address: zzia88@gmail.com >>> PostgreSQL version: 9.5.3 >>> Operating system: windows7-x64(64 bit) >>> Description: >>> >>> >> =E2=80=8BThis seems to be a duplicate of bug # 14240 which has already b= een >> responded to. >> >> David J. >> =E2=80=8B >> >> > =E2=80=8BTo quote the other reply: " Does not seem like a bug, IIRC commit/rollback is not allowed inside functions ( savepoints are, you may try to work with them ). =E2=80=8B" I'll just confirm this is true. =E2=80=8BThat is as exact as you are going to get - at least from me. =E2=80=8BIf you want more I suggest you reply to the original thread with additional detail about what you are trying to accomplish. As it stands you state you need to do something which is not possible in PostgreSQL. Without context it is difficult to suggest alternatives. Also, do not reply to people personally. These are public lists and generally the people contributing to them either want to share the information broadly or, as in this case, rely upon others to share in the work. I have re-added pgsql-bugs on this reply. =E2=80=8BAlso, it is customary to inline or bottom-post on these list - ju= st like Francisco and I both did in our replies to your initial bug reports. David J.
В списке pgsql-bugs по дате отправления: