pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Paragon Corporation <lr@pcorp.us>
To: 'Tom Lane' <tgl@sss.pgh.pa.us>
To: 'Andres Freund' <andres@2ndquadrant.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7756: When upgrading postgis extension get row is too big: size 9272, maximum size 8160
Date: Mon, 17 Dec 2012 12:40:30 -0500
Message-ID: <74C64E2F526645CB983E4FF80E6B2E1B@O> (raw)
In-Reply-To: <26090.1355761524@sss.pgh.pa.us>
References: <E1TkbAz-0004Cu-4r@wrigleys.postgresql.org>
	<20121217140432.GB5099@awork2.anarazel.de>
	<320FE6BE45114A61884C5BEDB517D6E9@O>
	<20121217151117.GA4803@awork2.anarazel.de>
	<26090.1355761524@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Tom,

I think you may have found the problem.


The postgis extension has a big custom WHERE condition used to exclude the
range of spatial_ref_sys records we package postgis from being backed up. 

pg_extension seems to hold that value in the extcondition column and for
each upgrade I do adds another array entry.  Though that might be by design
to keep track of previous versions and maybe the designers weren't expecting
someone crazy enough to stuff in a largish where condition :)


So here are the steps to reproduce:

CREATE EXTENSION postgis;

select array_upper(extcondition,1) from pg_extension where extname =
'postgis';

-- returns 1

ALTER EXTENSION postgis UPDATE TO "2.1.0SVNnext";

select array_upper(extcondition,1) from pg_extension where extname =
'postgis';

-- returns 2


ALTER EXTENSION postgis UPDATE TO "2.1.0SVN";

select array_upper(extcondition,1) from pg_extension where extname =
'postgis';

-- returns 3


ALTER EXTENSION postgis UPDATE TO "2.1.0SVNnext";

ERROR:  row is too big: size 9272, maximum size 8160


Andres,

I couldn't get my EDB install to give anything meaningful to back trace, but
same issue happens on my mingw dev install (which is running 9.2.1)
I have the backtrace for that on this ticket:

http://trac.osgeo.org/postgis/ticket/1959

 

-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us] 
Sent: Monday, December 17, 2012 11:25 AM
To: Andres Freund
Cc: Paragon Corporation; pgsql-bugs@postgresql.org
Subject: Re: [BUGS] BUG #7756: When upgrading postgis extension get row is
too big: size 9272, maximum size 8160

Andres Freund <andres@2ndquadrant.com> writes:
> On 2012-12-17 10:06:53 -0500, Paragon Corporation wrote:
>> 2012-12-17 09:15:15 EST ERROR:  54000: row is too big: size 9272, 
>> maximum size 8160

> Unfortunately that doesn't tell us very much. Could you get a 
> backtrace for that? I don't really see which table should receive such 
> large tuples...

Hm ... pg_extension does not have a TOAST table.  Could the extconfig and
extcondition fields be getting bloated unreasonably?  If I understand the
scenario here, this would require (1) the extension contains a configuration
table (probably one with a filter condition) and (2) for some reason the
repeated updates are adding, not replacing, entries for the table in these
columns.

If that's the story it would be easy to verify by watching the extension's
pg_extension entry as you repeatedly upgrade it.

			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 (13+ messages)  latest in thread

Message-ID: <74C64E2F526645CB983E4FF80E6B2E1B@O>
Permalink:  ../74C64E2F526645CB983E4FF80E6B2E1B@O/
Also on:    postgresql.org/message-id/74C64E2F526645CB983E4FF80E6B2E1B@O

 · 

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: lr@pcorp.us, tgl@sss.pgh.pa.us, andres@2ndquadrant.com
  Subject: Re: BUG #7756: When upgrading postgis extension get row is too big: size 9272, maximum size 8160
  In-Reply-To: <74C64E2F526645CB983E4FF80E6B2E1B@O>
  References: <E1TkbAz-0004Cu-4r@wrigleys.postgresql.org> <20121217140432.GB5099@awork2.anarazel.de> <320FE6BE45114A61884C5BEDB517D6E9@O> <20121217151117.GA4803@awork2.anarazel.de> <26090.1355761524@sss.pgh.pa.us> <74C64E2F526645CB983E4FF80E6B2E1B@O>

* 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