From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Achilleas Mantzios <achill@matrix.gatewaynet.com>
To: pgsql-admin@postgresql.org
Subject: Re: FK disappeared in 8.3.3
Date: Mon, 22 Nov 2010 08:58:17 -0600
Message-ID: <4CEA30A90200002500037CE1@gw.wicourts.gov> (raw)
In-Reply-To: <201011221213.32035.achill@matrix.gatewaynet.com>
References: <201011221213.32035.achill@matrix.gatewaynet.com>
Achilleas Mantzios <achill@matrix.gatewaynet.com> wrote:
> One (ON DELETE CASCADE) FK constraint which was supposed to be
> there was found to be (mysteriously) absent.
Do you have old backups to see how long it has been gone?
> So we pg_dumped the schema on a known good 8.3.3 identical test
> database
That's an oxymoron. 8.3.3 has known bugs and security vulnerability
which have been fixed in maintenance releases which can be applied
without a dump and reload.
http://www.postgresql.org/support/versioning
The current 8.3 release is 8.3.12. For details of what's been
fixed, see this:
http://www.postgresql.org/docs/8.3/static/release.html> and compared it against the suspicious schema on the problematic
> vessel. The diff (without options) alone produced ~ 7500 lines of
> output.
Were both databases at the same version number? Was the same
version of pg_dump used for both dumps? (Note: you can always dump
an older database with a newer version of pg_dump, but not vice
versa.)
> Both databases were created with the same procedure using dumps
> from 7.4.2.
The current version of 7.4 is 7.4.30!:
http://www.postgresql.org/docs/7.4/static/release.html
I'm not clear what you mean, though. Both databases are on 8.3.3?
> I must mention that the HW of the problematic vessel died some
> time around summer, and i had myself personally onboard, pg_dump
> the old DB, and restore it to the new box.
Did you get any errors when the dump was loaded? A damaged database
might have left orphaned rows which would have prevented creation of
the foreign key. Do you still have a dump file from that point?
> I am puzzled about the differences in the schema, if any one has
> any ideas of why this might be happening, would be great.
My first guess is that they were dumped by pg_dump executables from
different versions.
-Kevin
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-admin@postgresql.org
Cc: Kevin.Grittner@wicourts.gov, achill@matrix.gatewaynet.com
Subject: Re: FK disappeared in 8.3.3
In-Reply-To: <4CEA30A90200002500037CE1@gw.wicourts.gov>
References: <201011221213.32035.achill@matrix.gatewaynet.com> <4CEA30A90200002500037CE1@gw.wicourts.gov>
* 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