Re: bgwriter leaks resources after errors

From: "Qingqing Zhou" <zhouqq(at)cs(dot)toronto(dot)edu>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: bgwriter leaks resources after errors
Date: 2005-12-08 19:10:35
Message-ID: dna0dh$1lrp$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


"Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote
>
> The cleanest solution seems to be to make the bgwriter create and use a
> ResourceOwner, and probably get rid of the special hack in resowner.c
> that allows CurrentResourceOwner to be NULL.
>

Is that true that every moment the bgwriter just has one buffer pinned? Then
remember that buffer is enough. This could avoid using ResourceOwner but it
may need some hack into pin/unpin.

Regards,
Qingqing

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jim C. Nasby 2005-12-08 19:18:10 Re: generalizing the planner knobs
Previous Message Jim C. Nasby 2005-12-08 19:05:07 Re: HOOKS for Synchronous Replication?