Thanks to visit codestin.com
Credit goes to postgrespro.com

Re: pg_relation_size locking - Mailing list pgsql-hackers

From Tom Lane
Subject Re: pg_relation_size locking
Date
Msg-id [email protected]
Whole thread Raw
In response to pg_relation_size locking  (Andreas Pflug <[email protected]>)
Responses Re: pg_relation_size locking
List pgsql-hackers
Andreas Pflug <[email protected]> writes:
> Until recently, pg_relation_size used SearchSysCache to locate the 
> relation to examine, and calculated the file location from that 
> information. Starting with dbsize.c V1.5 (committed after Beta2), 
> relation_open(.., AccessShareLock) is used. This is very unfortunate 
> because it will not allow to observe a table growing while it is 
> populated, e.g. with a lengthy COPY; pg_relation_size will be blocked. 

Nonsense.

> After reverting to 1.4, everything was fine again.
> Can we have this reverted/fixed?

Can we have the actual problem explained?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: psql patch: new host/port
Next
From: Andreas Pflug
Date:
Subject: Re: pg_relation_size locking