From: Wouter Pels <wouter@spmapplications.com>
To: pgsql-admin@postgresql.org
Subject: Re: sequence owned by backwards compatability
Date: Wed, 12 Dec 2007 21:31:46 +1300
Message-ID: <475F9C72.8000403@spmapplications.com> (raw)
In-Reply-To: <475F6C5B.2060405@commandprompt.com>
References: <475F619A.4060300@spmapplications.com>
<475F6C5B.2060405@commandprompt.com>
Joshua D. Drake wrote:
> Wouter Pels wrote:
>
>> We were running into problems today when we tried to import a 8.2.4 dump
>> in a 8.1.5 database. It had to do with the new way of assigning
>> sequences to colums, which confused 8.1.5 I didn't expect that at the
>> time of configuration, and currently is down-grading to 8.1.x not an
>> easy option anymore.
>>
>> Is there any trick to work arround this issue ? some kind of switch for
>> backwards compatability ?
>
>
> No switch but you could restore the schema separately from the data.
> Then you could edit the schema to fit 8.1 commands before restore.
>
Don't like the idea of manualy editing the schema, seems like a waste of
time, specialy knowing that the situation will pop up more then once
I guess a data only restore will work on existing 8.1.x databases, but
then there is the hassle of truncating tables and disabling/enabling
triggers and all the the other yet unknown trouble.
> Out of curiosity.. why are you doing this? :)
We are working with multiple configurations from 8.0.x to 8.2.x, its
imposible to upgrade them all at the same time.
Dump and restore of the complete database ..was.. allways the easiest
way to get all data across.
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: wouter@spmapplications.com
Subject: Re: sequence owned by backwards compatability
In-Reply-To: <475F9C72.8000403@spmapplications.com>
* 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