pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pg_restore index/trigger restoration issue
4+ messages / 2 participants
[nested] [flat]

* pg_restore index/trigger restoration issue
@ 2006-04-27 10:59  David Levy <dvid.levy@gmail.com>
  0 siblings, 1 reply; 4+ messages in thread

From: David Levy @ 2006-04-27 10:59 UTC (permalink / raw)
  To: pgsql-admin

Hi,

I am having troubles using pg_restore : none of my indexes are restored !
It did not see any relevant message in the pg_restore output to explain this
behaviour.

So I am trying to restore a pg_dump (version8.1) sql dump file from a remote
8.0.3 DB into a local 8.1 DB using pg_restore (version 8.1).
Is there something incompatible ?
The dump file seems to be correct regarding index creation statements... I
really don't understand what is happening.

As the title mentions, I have the same issue with triggers : none of my
triggers are restored neither ! Is there any option in pg_dump or pg_restore
to handle this ?


Regards

Thanks in advance
David LEVY


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

* pg_restore index/trigger restoration issue
@ 2006-04-27 11:36  David Levy <dvid.levy@gmail.com>
  0 siblings, 0 replies; 4+ messages in thread

From: David Levy @ 2006-04-27 11:36 UTC (permalink / raw)
  To: pgsql-admin

Hi,

I am having troubles using pg_restore : none of my indexes are restored !
It did not see any relevant message in the pg_restore output to explain this
behaviour.

So I am trying to restore a pg_dump ( version8.1 ) sql dump file from a
remote 8.0.3 DB into a local 8.1 DB using pg_restore (version 8.1).
Is there something incompatible ?
The dump file seems to be correct regarding index creation statements... I
really don't understand what is happening.

As the title mentions, I have the same issue with triggers : none of my
triggers are restored neither ! Is there any option in pg_dump or pg_restore
to handle this ?


Regards

Thanks in advance
David LEVY


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

* Re: pg_restore index/trigger restoration issue
@ 2006-04-27 11:45  Jerry Sievers <jerry@jerrysievers.com>
  parent: David Levy <dvid.levy@gmail.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Jerry Sievers @ 2006-04-27 11:45 UTC (permalink / raw)
  To: David Levy <dvid.levy@gmail.com>; +Cc: pgsql-admin

"David Levy" <dvid.levy@gmail.com> writes:

> So I am trying to restore a pg_dump (version8.1 ) sql dump file from
> a remote 8.0.3 DB into a local 8.1 DB using pg_restore (version
> 8.1). Is there something incompatible The dump file seems to be
> correct regarding index creation statements I really don't
> understand what is happening As the title mentions, I have the same
> issue with triggers : none of my triggers are restored neither ! Is
> there any option in pg_dump or pg_restore to handle this

Any chance your psql had the \t (show only tuples) option set?  This
prevents seeing indexes and trigs in the table schema listing.

As for what opts pg_dump and pg_restore offer, see the manual.


-------------------------------------------------------------------------------
Jerry Sievers   305 854-3001 (home)     WWW ECommerce Consultant
                305 321-1144 (mobile	http://www.JerrySievers.com/



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

* Re: pg_restore index/trigger restoration issue
@ 2006-04-27 12:06  David Levy <dvid.levy@gmail.com>
  parent: Jerry Sievers <jerry@jerrysievers.com>
  0 siblings, 0 replies; 4+ messages in thread

From: David Levy @ 2006-04-27 12:06 UTC (permalink / raw)
  To: Jerry Sievers <jerry@jerrysievers.com>; +Cc: pgsql-admin

I am using pgAdmin and phpPgAdmin with the same results (no triggers, no
indexes).

Thanks but the docs were not helpful yet. I've been trying to solve the
issue many times in the past few monthes before posting to the list today.
:(



On 27 Apr 2006 07:45:55 -0400, Jerry Sievers <jerry@jerrysievers.com> wrote:
>
> "David Levy" <dvid.levy@gmail.com> writes:
>
> > So I am trying to restore a pg_dump (version8.1 ) sql dump file from
> > a remote 8.0.3 DB into a local 8.1 DB using pg_restore (version
> > 8.1). Is there something incompatible The dump file seems to be
> > correct regarding index creation statements I really don't
> > understand what is happening As the title mentions, I have the same
> > issue with triggers : none of my triggers are restored neither ! Is
> > there any option in pg_dump or pg_restore to handle this
>
> Any chance your psql had the \t (show only tuples) option set?  This
> prevents seeing indexes and trigs in the table schema listing.
>
> As for what opts pg_dump and pg_restore offer, see the manual.
>
>
>
> -------------------------------------------------------------------------------
> Jerry Sievers   305 854-3001 (home)     WWW ECommerce Consultant
>                 305 321-1144 (mobile    http://www.JerrySievers.com/
>



--
David LEVY {selenium}
Website ~ http://www.davidlevy.org
Wishlist ZLiO ~ http://david.zlio.com/wishlist
Blog ~ http://selenium.blogspot.com


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


end of thread, other threads:[~2006-04-27 12:06 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-04-27 10:59 pg_restore index/trigger restoration issue David Levy <dvid.levy@gmail.com>
2006-04-27 11:45 ` Jerry Sievers <jerry@jerrysievers.com>
2006-04-27 12:06   ` David Levy <dvid.levy@gmail.com>
2006-04-27 11:36 pg_restore index/trigger restoration issue David Levy <dvid.levy@gmail.com>

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