Re: SQL scripts - sequences - Mailing list pgsql-general

From Brook Milligan
Subject Re: SQL scripts - sequences
Date
Msg-id 200008291851.MAA05439@biology.nmsu.edu
Whole thread Raw
In response to Re: SQL scripts - sequences  ("Adam Lang" <aalang@rutgersinsurance.com>)
List pgsql-general
   Is it safe and accurate?  Should I be able to feel mostly secure about using
   that to dump my database definitions?

As safe and accurate as it gets without having a set of scripts that
loaded the data in the first place (barring you writing something
better, of course).

The main catch is that all the metadata about relations doesn't seem
to be preserved within the database and so can't be dumped with
pg_dump (correct me if I'm wrong).  Consequently, I have relied on
keeping scripts for the setup of relations and using pg_dump for the
data.

   In the script below, I get this error after each references statement:
   NOTICE:  CREATE TABLE/FOREIGN KEY clause ignored; not yet implemented

You're using an old release.  Upgrade.

   Nope, I'm running 6.5.  Besides upgrading to 7 (I tried once and it was a
   pain in the ass.  I'm running RedHat6.2 and I only had about a million
   dependencies to update also... one which I never got working...), what can I
   do? Technically I really don't need the references, just a nice addition.

You really do want references for maintaining data integrity.  Can't
you upgrade PostgreSQL without upgrading the OS?  If you use pg_dump
it shouldn't be that bad.  (Or use the NetBSD pkgsrc system which
pretty much automates the installation except for loading the
relations/data. :) There are even some hooks for using the pkgsrc
system with Linux, I think.

Cheers,
Brook

pgsql-general by date:

Previous
From: teg@redhat.com (Trond Eivind Glomsrød)
Date:
Subject: Re: PG 7.0.2 Install
Next
From: Lamar Owen
Date:
Subject: Re: PG 7.0.2 Install