Re: BUG #15460: Error while creating index or constraint

From: Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com>
To: Peter Geoghegan <pg(at)bowt(dot)ie>
Cc: paul(dot)vanderlinden(at)mapcreator(dot)eu, PostgreSQL mailing lists <pgsql-bugs(at)lists(dot)postgresql(dot)org>, Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
Subject: Re: BUG #15460: Error while creating index or constraint
Date: 2018-11-13 09:13:37
Message-ID: CAEepm=2BfpOChopLAXbO9t30SsGFnMXb6LbVq9B_cM=Emrw94g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Tue, Oct 30, 2018 at 4:15 AM Peter Geoghegan <pg(at)bowt(dot)ie> wrote:
> > ERROR: could not determine size of temporary file "0"

filesize = BufFileSize(file);
if (filesize < 0)
ereport(ERROR,
(errcode_for_file_access(),
errmsg("could not determine
size of temporary file \"%s\"", filename)));

Ahh. I think we may be overflowing a 32 bit off_t on this platform.

--
Thomas Munro
http://www.enterprisedb.com

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Pavel 2018-11-13 09:21:55 Re: Fail to create PK or index for large table in Windows
Previous Message Thomas Munro 2018-11-13 09:00:38 Re: Fail to create PK or index for large table in Windows