Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id D5F032E0090 for ; Wed, 26 Mar 2008 11:44:58 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 46168-03-8 for ; Wed, 26 Mar 2008 11:44:51 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from mail.transas.com (mail.transas.com [82.140.75.150]) by postgresql.org (Postfix) with ESMTP id 2BEEF2E00A0 for ; Wed, 26 Mar 2008 11:44:26 -0300 (ADT) Received: from sol.transas.com (sol.transas.com [10.10.0.20]) by mail.transas.com (Postfix) with ESMTP id 8CABA507EBE; Wed, 26 Mar 2008 17:44:16 +0300 (MSK) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5 Subject: Re: [DOCS] pg_total_relation_size() and CHECKPOINT Date: Wed, 26 Mar 2008 17:44:16 +0300 Message-ID: <528853D3C5ED2C4AA8990B504BA7FB850106DF29@sol.transas.com> In-Reply-To: <47EA5602.6060605@dunslane.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [HACKERS] [DOCS] pg_total_relation_size() and CHECKPOINT Thread-Index: AciPSTv4G1+wnIhIQ8en8AXpo1fFrgABW8dg From: "Zubkovsky, Sergey" To: "Andrew Dunstan" , "Alvaro Herrera" Cc: "Tom Lane" , "Gregory Stark" , , "Magnus Hagander" X-Transas-MailScanner: Found to be clean X-Transas-MailScanner-From: sergey.zubkovsky@transas.com X-Transas-MailScanner-To: alvherre@commandprompt.com, andrew@dunslane.net, magnus@hagander.net, pgsql-hackers@postgresql.org, stark@enterprisedb.com, tgl@sss.pgh.pa.us X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200803/1043 X-Sequence-Number: 115844 Can anybody tell me how filesystem space is allocated and point me to the sources if it's possible? I have some experience with programming for Windows and I'll try to investigate this problem. -----Original Message----- From: Andrew Dunstan [mailto:andrew@dunslane.net]=20 Sent: Wednesday, March 26, 2008 4:56 PM To: Alvaro Herrera Cc: Tom Lane; Gregory Stark; Zubkovsky, Sergey; pgsql-hackers@postgresql.org; Magnus Hagander Subject: Re: [HACKERS] [DOCS] pg_total_relation_size() and CHECKPOINT Alvaro Herrera wrote: > Tom Lane wrote: > > =20 >> The real question here is whether Windows' stat() is telling the truth >> about how much filesystem space has actually been allocated to a file. >> It seems entirely possible that it's not; but if it is, then I think we >> have a problem. >> =20 > > Has this been examined by a Windows hacker? > > =20 If someone can suggest a test program I'll be happy to run it. cheers andrew