Re: BUG #14240: i want do manual commit not auto_commit.

From: Francisco Olarte <folarte(at)peoplecall(dot)com>
To: zzia88(at)gmail(dot)com
Cc: "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #14240: i want do manual commit not auto_commit.
Date: 2016-07-10 15:22:01
Message-ID: CA+bJJbyz+pvPZgcsLoSoQjQy4Yf55UBuqefcVYyvPBdVAVAMXA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Sun, Jul 10, 2016 at 2:38 PM, <zzia88(at)gmail(dot)com> wrote:
> CREATE OR REPLACE FUNCTION DELROLL(V_CHOICE INT)
...
> ROLLBACK;
> --COMMIT;

Does not seem like a bug, IIRC commit/rollback is not allowed inside
functions ( savepoints are, you may try to work with them ).

> when i am doing auto commit off the it is giving some internal error.

This sentence does not make sense. If you mean it is giving some error
when your try it with autocommit off, try to copy and paste the error.

> please check this code with commit.
> i want to flash my rollback segment automatically.

Are you sure you are using postgres? AFAIK it does not hace a rollback
segment to ''flash'', this sound more like Oracle or similar things.

Francisco Olarte.

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Prashanth Adiyodi 2016-07-10 16:53:05 Re: [BUGS] Where clause in pg_dump: need help
Previous Message zzia88 2016-07-10 12:38:05 BUG #14240: i want do manual commit not auto_commit.