From: | Andreas Pflug <pgadmin(at)pse-consulting(dot)de> |
---|---|
To: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | pg_relation_size locking |
Date: | 2005-12-12 11:32:51 |
Message-ID: | 439D5FE3.1010702@pse-consulting.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
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.
After reverting to 1.4, everything was fine again.
Can we have this reverted/fixed?
Regards,
Andreas
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2005-12-12 11:33:13 | Re: psql patch: new host/port |
Previous Message | Andrew Dunstan | 2005-12-12 09:32:22 | Re: Different length lines in COPY CSV |