commit inside a function failing

From: Suresh Raja <suresh(dot)rajaabc(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org, pgsql-sql(at)postgresql(dot)org
Subject: commit inside a function failing
Date: 2015-01-23 19:56:53
Message-ID: CAJP7dtA41j212Q48eRGoJa6_yb6YnRXj_kEth=N-0cPOgWe8fQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

Hi All:

We are running a function with a loop in it. We tried
commit;
We are getting error with above command. How can i easily commit withing
a function.

Thanks,
-SR

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Pavel Stehule 2015-01-23 20:00:56 Re: [SQL] commit inside a function failing
Previous Message Adrian Klaver 2015-01-23 18:49:49 Re: In need of some JSONB examples ?

Browse pgsql-sql by date

  From Date Subject
Next Message Pavel Stehule 2015-01-23 20:00:56 Re: [SQL] commit inside a function failing
Previous Message Dmitry Teslenko 2015-01-16 10:07:22 fifo stock calculation with window function