pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: prikshat@cadence.com, "pgsql-bugs@postgresql.org" <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14280: Error in PostgreSQL - could not extend file "base...": File too large
Date: Fri, 05 Aug 2016 11:46:20 -0400
Message-ID: <16752.1470411980@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKFQuwYPEdo_AS5NWp5wi40hqQOchs=E0qaK4HGZb3=d19Utng@mail.gmail.com>
References: <20160805064107.1413.83137@wrigleys.postgresql.org>
	<CAKFQuwYPEdo_AS5NWp5wi40hqQOchs=E0qaK4HGZb3=d19Utng@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

"David G. Johnston" <david.g.johnston@gmail.com> writes:
> On Fri, Aug 5, 2016 at 2:41 AM, <prikshat@cadence.com> wrote:
>> A table has 400 columns. While inserting data into this table, We are
>> getting the error - "could not extend file "base/16385/16872": File too
>> large".

> Possibly a bit more guessing could be had from someone knowledgeable with
> the code surrounding that error path but this is awfully light, transient,
> and potentially machine specific, to track down.

"File too large" is EFBIG, which ordinarily I'd say is impossible because
we don't let individual files exceed 1GB, precisely to avoid the type of
filesystem limitation that would be reported with this error code.
However, the man page for write(2) on my Linux box saith

       EFBIG  An attempt was made to write a file that exceeds the implementa-
              tion-defined maximum file size or the process's file size limit,
              or to write at a position past the maximum allowed offset.

So that gives us a plausible explanation after all: you have an active file
size limit imposed on the backend processes, and it was reached by this
particular process.  What made the error go away was simply using a fresh
backend session.  You'll want to turn off the restriction before starting
the postmaster, though.  See ulimit.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (3+ messages)

Message-ID: <16752.1470411980@sss.pgh.pa.us>
Permalink:  ../16752.1470411980@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/16752.1470411980@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, david.g.johnston@gmail.com
  Subject: Re: BUG #14280: Error in PostgreSQL - could not extend file "base...": File too large
  In-Reply-To: <16752.1470411980@sss.pgh.pa.us>
  References: <20160805064107.1413.83137@wrigleys.postgresql.org> <CAKFQuwYPEdo_AS5NWp5wi40hqQOchs=E0qaK4HGZb3=d19Utng@mail.gmail.com> <16752.1470411980@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox