Re: Functions, savepoints, autocommit = I am confused !

From: Tim Smith <randomdev4+postgres(at)gmail(dot)com>
To: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Functions, savepoints, autocommit = I am confused !
Date: 2015-06-26 19:09:33
Message-ID: CA+HuS5H+_s5vVBqnsYofuO-j0Ya0oApR-KA069tvWF8m_oyFTw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>
>
> I knew I was missing something:(
> http://www.postgresql.org/docs/9.4/interactive/plpgsql-control-structures.html#PLPGSQL-ERROR-TRAPPING
>
> "When an error is caught by an EXCEPTION clause, the local variables of the
> PL/pgSQL function remain as they were when the error occurred, but all
> changes to persistent database state within the block are rolled back. As an
> example, consider this fragment:"
>
>
> So I would try

You are a genius. ;-)

Thank you !

Have a delightful weekend.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Kevin Grittner 2015-06-26 19:26:35 Re: Question about the isolation level and visible
Previous Message litu16 2015-06-26 18:41:15 How to convert a text variable into a timestamp in postgreSQL?