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>
Cc: '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 16:08:40 -0500
Message-ID: <2B9F3B80E42F4D1BB1F492D186DD62FA@O> (raw)
In-Reply-To: <27985.1355767108@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>
	<74C64E2F526645CB983E4FF80E6B2E1B@O>
	<27985.1355767108@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

I'm beginning to fill a bit dumb.  

Attached is a fake_postgis extension that you can just copy the files to
your extension folder that can produce the error if you run the below:

CREATE EXTENSION fake_postgis;
ALTER EXTENSION fake_postgis UPDATE TO "2.1.0next";
ALTER EXTENSION fake_postgis UPDATE TO "2.1.0";
ALTER EXTENSION fake_postgis UPDATE TO "2.1.0next";

I assumed that the :

pg_catalog.pg_extension_config_dump

Calls would overwrite each subsequent for a given object for a given
extension.  So I have that in my upgrade script as well should we add more
spatial_ref_sys records we want to avoid dumping.

It seems it just adds.






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

"Paragon Corporation" <lr@pcorp.us> writes:
> 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 :)

For those of us who don't have the latest postgis and all its dependencies
installed, could you extract just the steps of the install and upgrade
scripts that reference this configuration table?

I can see how we might get to this if you were dropping and re-adding the
config table in each cycle, but perhaps that's not what you're doing.

			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

Attachments:

  fake_postgis.zip (application/x-zip-compressed, 5.2K) download

view thread (13+ messages)  latest in thread

Message-ID: <2B9F3B80E42F4D1BB1F492D186DD62FA@O>
Permalink:  ../2B9F3B80E42F4D1BB1F492D186DD62FA@O/
Also on:    postgresql.org/message-id/2B9F3B80E42F4D1BB1F492D186DD62FA@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: <2B9F3B80E42F4D1BB1F492D186DD62FA@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> <27985.1355767108@sss.pgh.pa.us> <2B9F3B80E42F4D1BB1F492D186DD62FA@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