pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #14280: Error in PostgreSQL - could not extend file "base...": File too large
3+ messages / 3 participants
[nested] [flat]

* BUG #14280: Error in PostgreSQL - could not extend file "base...": File too large
@ 2016-08-05 06:41 prikshat@cadence.com
  2016-08-05 14:54 ` Re: BUG #14280: Error in PostgreSQL - could not extend file "base...": File too large David G. Johnston <david.g.johnston@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: prikshat@cadence.com @ 2016-08-05 06:41 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      14280
Logged by:          Prikshat Heera
Email address:      prikshat@cadence.com
PostgreSQL version: 9.2.16
Operating system:   Linux
Description:        

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".
After that, we vacuumm'ed and reindex'ed the table and insert worked fine.
Please evaluate and let us know if this has been fixed in 9.3 ?


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


^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #14280: Error in PostgreSQL - could not extend file "base...": File too large
  2016-08-05 06:41 BUG #14280: Error in PostgreSQL - could not extend file "base...": File too large prikshat@cadence.com
@ 2016-08-05 14:54 ` David G. Johnston <david.g.johnston@gmail.com>
  2016-08-05 15:46   ` Re: BUG #14280: Error in PostgreSQL - could not extend file "base...": File too large Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: David G. Johnston @ 2016-08-05 14:54 UTC (permalink / raw)
  To: prikshat@cadence.com; +Cc: pgsql-bugs

On Fri, Aug 5, 2016 at 2:41 AM, <prikshat@cadence.com> wrote:

> The following bug has been logged on the website:
>
> Bug reference:      14280
> Logged by:          Prikshat Heera
> Email address:      prikshat@cadence.com
> PostgreSQL version: 9.2.16
> Operating system:   Linux
> Description:
>
> 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".
> After that, we vacuumm'ed and reindex'ed the table and insert worked fine.
> Please evaluate and let us know if this has been fixed in 9.3 ?
>

​Most likely whatever "it" is has not been fixed.  9.2 is still active ​so
any fix would have been back-patched to it.  If "the problem" goes away in
9.3 is would be purely coincidental.

With the information provided diagnostics seems problematic - since it
would likely first require getting a machine into the failing mode which
your's no longer is and there is no obvious reproduction approach.

Which Linux?

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.  Working toward
reproduction or posting back while the machine is failing (if it ever comes
up again) seem like necessary next steps.

David J.

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #14280: Error in PostgreSQL - could not extend file "base...": File too large
  2016-08-05 06:41 BUG #14280: Error in PostgreSQL - could not extend file "base...": File too large prikshat@cadence.com
  2016-08-05 14:54 ` Re: BUG #14280: Error in PostgreSQL - could not extend file "base...": File too large David G. Johnston <david.g.johnston@gmail.com>
@ 2016-08-05 15:46   ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Tom Lane @ 2016-08-05 15:46 UTC (permalink / raw)
  To: David G. Johnston <david.g.johnston@gmail.com>; +Cc: pgsql-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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2016-08-05 15:46 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-08-05 06:41 BUG #14280: Error in PostgreSQL - could not extend file "base...": File too large prikshat@cadence.com
2016-08-05 14:54 ` David G. Johnston <david.g.johnston@gmail.com>
2016-08-05 15:46   ` Tom Lane <tgl@sss.pgh.pa.us>

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