Re: Partial commit within the trasaction - Mailing list pgsql-general

From Michael Fuhr
Subject Re: Partial commit within the trasaction
Date
Msg-id 20050908125347.GB68650@winnie.fuhr.org
Whole thread Raw
In response to Partial commit within the trasaction  (Bohdan Linda <bohdan.linda@seznam.cz>)
Responses Re: Partial commit within the trasaction
List pgsql-general
On Thu, Sep 08, 2005 at 01:23:56PM +0200, Bohdan Linda wrote:
> plpgsq code does time intensive data manipulation + database vacuuming.
> This data manipulation is splitted logically into several steps. After
> each step I would like to give a message to the status table, what the
> procedure is performing.
>
> Currently I pass the information to the table via insert, but this is also
> the limitation. I would like to allow another user see the progress of the
> current pgplsql procedure, but no insert is commited, till procedure ends.
>
> How this can be solved?

One way would be to use contrib/dblink to open another connection
to the database so the status messages could be inserted in a
separate transaction.

--
Michael Fuhr

pgsql-general by date:

Previous
From: Axel Straschil
Date:
Subject: Re: EMS PostgreSQL Manager vs. TheKompany DataArchitect
Next
From: "pobox@verysmall.org"
Date:
Subject: Re: change column data type from smallint to integer