Skip site navigation (1) Skip section navigation (2)

Re: Hot Standby and cancelling idle queries

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Simon Riggs <simon(at)2ndQuadrant(dot)com>
Cc: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Hot Standby and cancelling idle queries
Date: 2009-11-25 16:25:43
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Simon Riggs <simon(at)2ndQuadrant(dot)com> writes:
> An idle-in-transaction transaction can also hold a temporary file. Think
> of an open cursor, for example. Therefore, remove the distinction
> idle-in-transaction backends need to be killed too when a tablespace is
> dropped.

Um ... I think you have forgotten about WITH HOLD cursors, which will
also have temp files.  Implication: whatever you are thinking of here
would require killing EVERY session.  Conclusion: you need a different

			regards, tom lane

In response to


pgsql-hackers by date

Next:From: Tom LaneDate: 2009-11-25 16:30:47
Subject: Re: Partitioning option for COPY
Previous:From: Stefan KaltenbrunnerDate: 2009-11-25 16:10:55
Subject: Re: garbage in psql -l

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group