pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedSession disconnected
2+ messages / 2 participants
[nested] [flat]
* Session disconnected
@ 2003-03-13 10:28 Jan.Lindgren <jan.lindgren@stabilizer.se>
2003-03-18 17:25 ` Re: Session disconnected Robert Treat <xzilla@users.sourceforge.net>
0 siblings, 1 reply; 2+ messages in thread
From: Jan.Lindgren @ 2003-03-13 10:28 UTC (permalink / raw)
To: pgsql-admin
Hi,
I got a question on how postgres handle an interrupted transaction,
regarding rollback, commit.
We do have a rather unstable connection to our db and sometime a
transaction/session will be disconnected but the process is still
visible on the server.
How will postgres handle an update transaction from a client to the
server that is disconnected?
- will the query be rollbacked automatically ??
- is it safe to just kill the hanging process on the server?
Regards
Jan Lindgren, Stabilizer
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Session disconnected
2003-03-13 10:28 Session disconnected Jan.Lindgren <jan.lindgren@stabilizer.se>
@ 2003-03-18 17:25 ` Robert Treat <xzilla@users.sourceforge.net>
0 siblings, 0 replies; 2+ messages in thread
From: Robert Treat @ 2003-03-18 17:25 UTC (permalink / raw)
To: Jan.Lindgren <jan.lindgren@stabilizer.se>; +Cc: pgsql-admin
On Thu, 2003-03-13 at 05:28, Jan.Lindgren wrote:
> Hi,
> I got a question on how postgres handle an interrupted transaction,
> regarding rollback, commit.
>
> We do have a rather unstable connection to our db and sometime a
> transaction/session will be disconnected but the process is still
> visible on the server.
>
> How will postgres handle an update transaction from a client to the
> server that is disconnected?
> - will the query be rollbacked automatically ??
> - is it safe to just kill the hanging process on the server?
>
More or less yes. Without getting too far into the pg internals,
understand that any information written in the database is not marked as
valid until it is given a commit. Eventually vacuum will notice that the
transaction tied to the entry is no longer valid, and will remove the
dead weight.
Robert Treat
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2003-03-18 17:25 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-03-13 10:28 Session disconnected Jan.Lindgren <jan.lindgren@stabilizer.se>
2003-03-18 17:25 ` Robert Treat <xzilla@users.sourceforge.net>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox