pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL
11+ messages / 4 participants
[nested] [flat]

* pgsql: Fix VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL
@ 2016-09-06 14:41  Simon Riggs <simon@2ndQuadrant.com>
  0 siblings, 1 reply; 11+ messages in thread

From: Simon Riggs @ 2016-09-06 14:41 UTC (permalink / raw)
  To: pgsql-committers

Fix VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL

lazy_truncate_heap() was waiting for
VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL, but in microseconds
not milliseconds as originally intended.

Found by code inspection.

Simon Riggs

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/dcb12ce8d8691e0e526d3f38d14c4d7fc9c664f5

Modified Files
--------------
src/backend/commands/vacuumlazy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 11+ messages in thread

* Re: [COMMITTERS] pgsql: Fix VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL
@ 2016-09-07 12:47  Fujii Masao <masao.fujii@gmail.com>
  parent: Simon Riggs <simon@2ndQuadrant.com>
  0 siblings, 1 reply; 11+ messages in thread

From: Fujii Masao @ 2016-09-07 12:47 UTC (permalink / raw)
  To: Simon Riggs <simon@2ndquadrant.com>; +Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>

On Tue, Sep 6, 2016 at 11:41 PM, Simon Riggs <simon@2ndquadrant.com> wrote:
> Fix VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL
>
> lazy_truncate_heap() was waiting for
> VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL, but in microseconds
> not milliseconds as originally intended.

Don't we need to back-patch this?

Regards,

-- 
Fujii Masao


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



^ permalink  raw  reply  [nested|flat] 11+ messages in thread

* Re: [COMMITTERS] pgsql: Fix VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL
@ 2016-09-07 12:50  Simon Riggs <simon@2ndquadrant.com>
  parent: Fujii Masao <masao.fujii@gmail.com>
  0 siblings, 1 reply; 11+ messages in thread

From: Simon Riggs @ 2016-09-07 12:50 UTC (permalink / raw)
  To: Fujii Masao <masao.fujii@gmail.com>; +Cc: Simon Riggs <simon@2ndquadrant.com>; PostgreSQL-development <pgsql-hackers@postgresql.org>

On 7 September 2016 at 13:47, Fujii Masao <masao.fujii@gmail.com> wrote:
> On Tue, Sep 6, 2016 at 11:41 PM, Simon Riggs <simon@2ndquadrant.com> wrote:
>> Fix VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL
>>
>> lazy_truncate_heap() was waiting for
>> VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL, but in microseconds
>> not milliseconds as originally intended.
>
> Don't we need to back-patch this?

If we do then a database-wide VACUUM on a busy database will take
substantially longer than it does now.

That may not be perceived as a "fix" by everybody, so we should not do
it without an explicit agreement by many.

Thoughts?

-- 
Simon Riggs                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



^ permalink  raw  reply  [nested|flat] 11+ messages in thread

* Re: [COMMITTERS] pgsql: Fix VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL
@ 2016-09-07 13:58  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Simon Riggs <simon@2ndquadrant.com>
  0 siblings, 1 reply; 11+ messages in thread

From: Tom Lane @ 2016-09-07 13:58 UTC (permalink / raw)
  To: Simon Riggs <simon@2ndquadrant.com>; +Cc: Fujii Masao <masao.fujii@gmail.com>; PostgreSQL-development <pgsql-hackers@postgresql.org>

Simon Riggs <simon@2ndquadrant.com> writes:
> On 7 September 2016 at 13:47, Fujii Masao <masao.fujii@gmail.com> wrote:
>> On Tue, Sep 6, 2016 at 11:41 PM, Simon Riggs <simon@2ndquadrant.com> wrote:
>>> lazy_truncate_heap() was waiting for
>>> VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL, but in microseconds
>>> not milliseconds as originally intended.

>> Don't we need to back-patch this?

> If we do then a database-wide VACUUM on a busy database will take
> substantially longer than it does now.

On the other hand, it's also more likely to successfully perform desired
truncations.

> That may not be perceived as a "fix" by everybody, so we should not do
> it without an explicit agreement by many.

Agreed, but I vote with Fujii-san for back-patching.

			regards, tom lane


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



^ permalink  raw  reply  [nested|flat] 11+ messages in thread

* Re: [COMMITTERS] pgsql: Fix VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL
@ 2016-09-08 09:18  Simon Riggs <simon@2ndquadrant.com>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 11+ messages in thread

From: Simon Riggs @ 2016-09-08 09:18 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Simon Riggs <simon@2ndquadrant.com>; Fujii Masao <masao.fujii@gmail.com>; PostgreSQL-development <pgsql-hackers@postgresql.org>

On 7 September 2016 at 14:58, Tom Lane <tgl@sss.pgh.pa.us> wrote:

>> That may not be perceived as a "fix" by everybody, so we should not do
>> it without an explicit agreement by many.
>
> Agreed, but I vote with Fujii-san for back-patching.

No problem with backpatching, just wanted some +1s before I did it.

Will do that tomorrow.

-- 
Simon Riggs                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



^ permalink  raw  reply  [nested|flat] 11+ messages in thread

* pgsql: Fix VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL
@ 2016-09-09 10:46  Simon Riggs <simon@2ndQuadrant.com>
  0 siblings, 0 replies; 11+ messages in thread

From: Simon Riggs @ 2016-09-09 10:46 UTC (permalink / raw)
  To: pgsql-committers

Fix VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL

lazy_truncate_heap() was waiting for
VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL, but in microseconds
not milliseconds as originally intended.

Found by code inspection.

Simon Riggs

Branch
------
REL9_6_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/1fa42debe676146f1f3e4809ef42e9a0f300e112

Modified Files
--------------
src/backend/commands/vacuumlazy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 11+ messages in thread

* pgsql: Fix VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL
@ 2016-09-09 10:47  Simon Riggs <simon@2ndQuadrant.com>
  0 siblings, 0 replies; 11+ messages in thread

From: Simon Riggs @ 2016-09-09 10:47 UTC (permalink / raw)
  To: pgsql-committers

Fix VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL

lazy_truncate_heap() was waiting for
VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL, but in microseconds
not milliseconds as originally intended.

Found by code inspection.

Simon Riggs

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/f3b3e871ee694ec050073c9732764c93fb891a31

Modified Files
--------------
src/backend/commands/vacuumlazy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 11+ messages in thread

* pgsql: Fix VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL
@ 2016-09-09 10:47  Simon Riggs <simon@2ndQuadrant.com>
  0 siblings, 0 replies; 11+ messages in thread

From: Simon Riggs @ 2016-09-09 10:47 UTC (permalink / raw)
  To: pgsql-committers

Fix VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL

lazy_truncate_heap() was waiting for
VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL, but in microseconds
not milliseconds as originally intended.

Found by code inspection.

Simon Riggs

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/81b0f820472dac93759d21dc8775fa588f473005

Modified Files
--------------
src/backend/commands/vacuumlazy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 11+ messages in thread

* pgsql: Fix VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL
@ 2016-09-09 10:47  Simon Riggs <simon@2ndQuadrant.com>
  0 siblings, 0 replies; 11+ messages in thread

From: Simon Riggs @ 2016-09-09 10:47 UTC (permalink / raw)
  To: pgsql-committers

Fix VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL

lazy_truncate_heap() was waiting for
VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL, but in microseconds
not milliseconds as originally intended.

Found by code inspection.

Simon Riggs

Branch
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/e1dddf3e89eca53a397f3ceb8deafe6bb87682d7

Modified Files
--------------
src/backend/commands/vacuumlazy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 11+ messages in thread

* pgsql: Fix VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL
@ 2016-09-09 10:47  Simon Riggs <simon@2ndQuadrant.com>
  0 siblings, 0 replies; 11+ messages in thread

From: Simon Riggs @ 2016-09-09 10:47 UTC (permalink / raw)
  To: pgsql-committers

Fix VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL

lazy_truncate_heap() was waiting for
VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL, but in microseconds
not milliseconds as originally intended.

Found by code inspection.

Simon Riggs

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/eaf6fe7fae390735ddeb9c9bbdebc54918fb416b

Modified Files
--------------
src/backend/commands/vacuumlazy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 11+ messages in thread

* pgsql: Fix VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL
@ 2016-09-09 10:47  Simon Riggs <simon@2ndQuadrant.com>
  0 siblings, 0 replies; 11+ messages in thread

From: Simon Riggs @ 2016-09-09 10:47 UTC (permalink / raw)
  To: pgsql-committers

Fix VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL

lazy_truncate_heap() was waiting for
VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL, but in microseconds
not milliseconds as originally intended.

Found by code inspection.

Simon Riggs

Branch
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/3ed7f54bc46ab2bb39b703b40bc72693c7f1306f

Modified Files
--------------
src/backend/commands/vacuumlazy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 11+ messages in thread


end of thread, other threads:[~2016-09-09 10:47 UTC | newest]

Thread overview: 11+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-09-06 14:41 pgsql: Fix VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL Simon Riggs <simon@2ndQuadrant.com>
2016-09-07 12:47 ` Fujii Masao <masao.fujii@gmail.com>
2016-09-07 12:50   ` Simon Riggs <simon@2ndquadrant.com>
2016-09-07 13:58     ` Tom Lane <tgl@sss.pgh.pa.us>
2016-09-08 09:18       ` Simon Riggs <simon@2ndquadrant.com>
2016-09-09 10:46 pgsql: Fix VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL Simon Riggs <simon@2ndQuadrant.com>
2016-09-09 10:47 pgsql: Fix VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL Simon Riggs <simon@2ndQuadrant.com>
2016-09-09 10:47 pgsql: Fix VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL Simon Riggs <simon@2ndQuadrant.com>
2016-09-09 10:47 pgsql: Fix VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL Simon Riggs <simon@2ndQuadrant.com>
2016-09-09 10:47 pgsql: Fix VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL Simon Riggs <simon@2ndQuadrant.com>
2016-09-09 10:47 pgsql: Fix VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL Simon Riggs <simon@2ndQuadrant.com>

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