Re: sequences not restoring properly

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Brian Dimeler <briand(at)lserve(dot)com>
Cc: Postgres general mailing list <pgsql-general(at)postgresql(dot)org>
Subject: Re: sequences not restoring properly
Date: 2006-01-20 18:41:59
Message-ID: 43D12EF7.40402@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Brian Dimeler wrote:
> Doing it that way doesn't produce any errors, but it still produces
> incorrect sequence names and values.
Are these sequences that you created by hand and then associated with a
column? Versus using serial/bigserial types?

Sincerely,

Joshua D. Drake

>
> Doug McNaught wrote:
>
>> Brian Dimeler <briand(at)lserve(dot)com> writes:
>>
>>
>>> I'm trying to transition a database from one server to another, the
>>> old one running Postgres 7.4.1 and the new, 8.1.1. When I try to
>>> restore using a pg_dump plaintext sql file from a nightly backup via
>>> the usual
>>>
>>> psql thedb < backup.sql
>>
>>
>> The best way to do this is to run the 8.1.1 pg_dump against the 7.4.1
>> server. The new pg_dump will know better how to create a backup that
>> 8.1.1 will like.
>>
>> -Doug
>>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend

--
The PostgreSQL Company - Command Prompt, Inc. 1.503.667.4564
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: PLphp, PLperl - http://www.commandprompt.com/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tony Caduto 2006-01-20 18:44:44 Re: what am I doing wrong with this query?
Previous Message Tom Lane 2006-01-20 18:40:06 Re: What is the maximum length of an IN(a, b, c....d) list in PostgreSQL