pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Postgres 7 pgdump problems
2+ messages / 2 participants
[nested] [flat]

* Postgres 7 pgdump problems
@ 2000-11-21 00:24 Rainer Mager <rmager@vgkk.com>
  2000-11-27 14:16 ` Re: Postgres 7 pgdump problems Paul Breen <pbreen@computerpark.co.uk>
  0 siblings, 1 reply; 2+ messages in thread

From: Rainer Mager @ 2000-11-21 00:24 UTC (permalink / raw)
  To: pgsql-admin

Hi all,

	We've run into an odd problem here. We had a db that we upgraded to PG7
without problems. We then dumped that db via pgdump and restored it to a
different server. The odd part is that the restored database had at least
one view from the original db that magically turned into a table (not a
view) in the new db. This broke some of our code that accesses the db (I
can't remember exactly why off hand) so I had to delete the table and
recreate it as a view by hand.
	Has anyone else seen this? It smells like a bug to me.

--Rainer




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Postgres 7 pgdump problems
  2000-11-21 00:24 Postgres 7 pgdump problems Rainer Mager <rmager@vgkk.com>
@ 2000-11-27 14:16 ` Paul Breen <pbreen@computerpark.co.uk>
  0 siblings, 0 replies; 2+ messages in thread

From: Paul Breen @ 2000-11-27 14:16 UTC (permalink / raw)
  To: Rainer Mager <rmager@vgkk.com>; +Cc: pgsql-admin

Rainer - sorry for the late reply, I haven't been at work for a few days!

Yeah, we've seen this happen before (on an old 6.3.2 database).  At first
I just noticed the view wasn't working and re-ran our 'create view' script
against the database.  This fixed the view but had a knock-on effect and
screwed up another view (actually the next view when listing tables etc.
in the database using '\d')!  It wasn't until I did a table listing that I
noticed that Postgres was listing the view as a table and - as you did - I
dropped the view as a table, then rebuilt it from our 'create view' script
and everything was OK.  Never did find out why though?!!  As you say, it
does smell like a bug.

Paul M. Breen, Software Engineer - Computer Park Ltd.

Tel:   (01536) 417155
Email: pbreen@computerpark.co.uk

On Tue, 21 Nov 2000, Rainer Mager wrote:

> Hi all,
> 
> 	We've run into an odd problem here. We had a db that we upgraded to PG7
> without problems. We then dumped that db via pgdump and restored it to a
> different server. The odd part is that the restored database had at least
> one view from the original db that magically turned into a table (not a
> view) in the new db. This broke some of our code that accesses the db (I
> can't remember exactly why off hand) so I had to delete the table and
> recreate it as a view by hand.
> 	Has anyone else seen this? It smells like a bug to me.
> 
> --Rainer
> 




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2000-11-27 14:16 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-11-21 00:24 Postgres 7 pgdump problems Rainer Mager <rmager@vgkk.com>
2000-11-27 14:16 ` Paul Breen <pbreen@computerpark.co.uk>

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